-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use python AIOHTTP integration with gunicorn + eventlet, claims aiocontextvars is not installed #630
Comments
Even on Python 3.7 you will have problems getting gevent to harmonize with contextvars/aiocontextvars. The blocker here is gevent itself: gevent/gevent#1407 this still needs to be released, and then we'd have to update the sanity checks in the SDK to allow those gevent versions. We don't support aiohttp in your scenario because without working contextvars we are unable to prevent contextual data (breadcrumbs, contexts, http request data) from leaking into unrelated errors. |
I see. Thanks for the explanation. It would be nice if this information could be added to the documentation, though: |
Yes we also need to make the error message more informative here. |
gevent 20.5 is out which fixes this problem |
…701) Found multiple issues with the asgi middleware: lack of warning if contextvars are broken -- as part of that I refactored/unified the error message we give in such situations, also added more information as gevent just recently released a version that deals with contextvars better exposed methods that were meant for overriding.. but all that is done in there can be done in event processors, so we make them private Fix #630 Fix #700 Fix #694
Here is the output trying to run the gunicorn service:
I have read in other issues that gevent (and therefore I guess eventlet, too?) interferes with the aiocontextvars package somehow.
Am I simply out of luck in this case if I cannot switch to Python 3.7?
The text was updated successfully, but these errors were encountered: