Closed seanieb closed 4 years ago
Well, this is a problem:
Server initialized for threading.
For some reason your application isn't running with the eventlet server. Are you passing the async_mode
argument into your SocketIO()
class? Try removing it if you are, so that the server selects the async mode on its own.
Are you passing the async_mode argument into your SocketIO() class?
No.
After doing some simplification it was related to how I was starting the app using the flask command in my docker/docker compose setup. Using command: python -m flask run --host 0.0.0.0 --port 5000
in docker compose fixed this. Specifying the file in the envar for the flask command doesn't seem to work.
Thank you so much for time and help. Your projects and writing are really fantastic.
I've a Flask app that uses blue prints and runs in a docker container. The problem I'm having, is that the connection never upgrades to WS. I've turned off development mode and
eventlet
is installed.It's started using a serve.py file:
The app is not run in the
development
mode. HTMLI refresh this to test if it establishes a WS. The GET request return
Server: Werkzeug/1.0.1 Python/3.8.3
Requirements
Logs