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 have my session table in MySQL in SQLAlchemy in a database used by my application. Everything works when I run the application on my desktop but it fails when I run it in Google Cloud Run. I receive the following error message... pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 20] Not a directory)")
This happens on this line of code... Session(app=flask_app)
Prior to this failure, I connect to the same database and run a query against the session table using the same SQLAlchemy connection. More details about this problem are documented here.
Any ideas on why this might be happening?
I am using SQLAlchemy Core. Does flask-session require an ORM connection?
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 have my session table in MySQL in SQLAlchemy in a database used by my application. Everything works when I run the application on my desktop but it fails when I run it in Google Cloud Run. I receive the following error message...
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 20] Not a directory)")
This happens on this line of code...
Session(app=flask_app)
Prior to this failure, I connect to the same database and run a query against the session table using the same SQLAlchemy connection. More details about this problem are documented here.
Thank you for your help,
Ben
Beta Was this translation helpful? Give feedback.
All reactions