Closed woutdenolf closed 2 years ago
Hi, I have a similar warning after upgrading to Flask 2.2.1. Posting it here as the warning is slightly different:
/home/project/env/lib/python3.8/site-packages/flask_socketio/__init__.py:754: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3. Use 'g' to store data, or 'request_ctx' to access the current context.
_request_ctx_stack.top.session = session_obj
Thanks
Please give the main branch a try for a fix. The code adapts to work both in >= 2.2 and < 2.2 releases.
Seems to work fine. Thanks!
From the Flask changelog: