Error while running flask with eventlet
See original GitHub issueI’m running flask with eventlet and I have the following error
AttributeError: 'Response' object has no attribute 'status_code'
In raven I could change transport to EventletHttpTransport
but I can’t see this class in the current SDK
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:15 (6 by maintainers)
Top Results From Across the Web
python Flask SocketIO throwing SSL error with eventlet
I am running this python code where I am trying to run a socketio flask application and passing ssl certificate files: from flask...
Read more >Getting Started — Flask-SocketIO documentation
The flask run command introduced in Flask 0.11 can be used to start a Flask-SocketIO development server based on Werkzeug, but this method...
Read more >python-flask-socketio(1) - Arch manual pages
If eventlet and gevent are not installed, the Werkzeug development web server is used. The flask run command introduced in Flask 0.11 can...
Read more >Flask-SocketIO Documentation - manpages.ubuntu!
run (app) runs a production ready server when eventlet or gevent are installed. If neither of these are installed, then the application runs...
Read more >Gunicorn — Flask Documentation (2.2.x)
It has built-in async worker support using gevent or eventlet. ... Logs for each request aren't shown by default, only worker info and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
any fix coming out soon?
I looked into this and I would recommend to either switch to greenlet workers for gunicorn or to disable eventlet monkeypatching for the queue module for now. What eventlet does to the queue module seems to be done very carelessly and breaks the stdlib’s API in other places already. The fix I have right now would mean copying half of the queue implementation from the stdlib into the SDK.
Sorry for the slow update, it took me a while to think about how to respond here.