question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while running flask with eventlet

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sagydrcommented, Jun 24, 2019

any fix coming out soon?

0reactions
untitakercommented, Jul 13, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found