You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deployed a Flask app on AWS using Nginx and uWSGI. Flask-Login does not seem to work correctly with uWSGI workers. When attempting to access current_user, I encounter the following error:
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Admin at 0x7f711ddf1f30> is not bound to a Session; attribute refresh operation cannot proceed.
I've encountered an issue with Flask-Login while deploying my app. The problem arises when using uWSGI workers, and it results in the error mentioned above. This error occurs intermittently, making it challenging to diagnose.
This discussion was converted from issue #788 on October 06, 2023 10:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I deployed a Flask app on AWS using Nginx and uWSGI. Flask-Login does not seem to work correctly with uWSGI workers. When attempting to access current_user, I encounter the following error:
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Admin at 0x7f711ddf1f30> is not bound to a Session; attribute refresh operation cannot proceed.
I've encountered an issue with Flask-Login while deploying my app. The problem arises when using uWSGI workers, and it results in the error mentioned above. This error occurs intermittently, making it challenging to diagnose.
Beta Was this translation helpful? Give feedback.
All reactions