Seeing gevent-websocket error in logs but web server works #2007
rajan-code
started this conversation in
General
Replies: 1 comment 2 replies
-
async_mode should be |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using flask-socketio and gevent
At the top:
socketio = SocketIO(app, cors_allowed_origins=['https://example.com', "http://localhost:3000"], async_mode='gevent')
I pip installed the latest versions of gevent and gevent-websocket
I followed the deployment instructions in the docs and am using uwsgi:
uwsgi --http :8000 --gevent 500 --processes 1 --logto /tmp/backend.log --stats /tmp/statsock --http-websockets --master --wsgi-file app.py --callable app
I see this error message in /tmp/backend.log:
Beta Was this translation helpful? Give feedback.
All reactions