Когда я запускаю внутренний сервер, я получаю следующую ошибку.
[25/Oct/2019 12:00:10] "OPTIONS / HTTP/1.1" 200 -
Error on request:
Traceback (most recent call last):
File "/home/user/.local/lib/python3.5/site-packages/werkzeug/serving.py", line 304, in run_wsgi
execute(self.server.app)
File "/home/user/.local/lib/python3.5/site-packages/werkzeug/serving.py", line 297, in execute
write(b"")
File "/home/user/.local/lib/python3.5/site-packages/werkzeug/serving.py", line 276, in write
self.wfile.write(data)
File "/usr/lib/python3.5/socket.py", line 593, in write
return self._sock.send(b)
File "/usr/lib/python3.5/ssl.py", line 861, in send
return self._sslobj.write(data)
File "/usr/lib/python3.5/ssl.py", line 586, in write
return self._sslobj.write(data)
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1848)
Также это начало кода колбы
@app.route('/',methods=['GET','POST'])
def responseToExtensionRequest():
if request.method == 'POST':
requestString = request.get_json(force=True,silent=True) # read the request as json string
global action_window
# global goal_score
requestGoal = requestString.get('goal')