Replies: 6 comments
-
I honestly don't know what's wrong. The error comes from eventlet, it does not have anything to do with this package, so I don't think this is caused by something you've done wrong. The best I can suggest is that you try different versions of eventlet. There are a couple that are newer than the one you are using, but if those don't work either you should also try older releases. |
Beta Was this translation helpful? Give feedback.
-
Miguel, thanks for you honest answer. Thanks again Miguel |
Beta Was this translation helpful? Give feedback.
-
@jonyr You can try gevent if you like, sure. You can also run Gunicorn without eventlet/gevent. |
Beta Was this translation helpful? Give feedback.
-
@miguelgrinberg how websockets will be managed on a prod environment running gunicorn without eventlet/gevent as you mention? Thanks |
Beta Was this translation helpful? Give feedback.
-
@jonyr See the 3rd option in the Gunicorn section of the docs. |
Beta Was this translation helpful? Give feedback.
-
@miguelgrinberg I will try. |
Beta Was this translation helpful? Give feedback.
-
Hi Miguel, I'm developing a Flask Rest API. I'm trying to use web sockets to push messages from backend to frontend.
I can run the project locally, and everything works fine. But when I try to use Gunicorn to start up the project, the project does not work properly.
This is my code / entry point
wsgi.py file
Running locally
Terminal output
But when I try to use Gunicorn as it is described here
Terminal output
Any idea, what I'm doing wrong?
Thanks in advance,
Juan R
Let me attach my requirements.txt, in case it helps.
requirements.txt
Beta Was this translation helpful? Give feedback.
All reactions