Created a Flask app that uses Flask SQLAlchemy to insert records into a Snowflake table. It works great locally, in staging, and production, but it occasionally gives me the following error:
sqlalchemy.exc.ProgrammingError: (snowflake.connector.errors.ProgrammingError) 390114 (08001): Authentication token has expired. The user must authenticate again.
I spoke to one of our DBA's and was told to add client_session_keep_alive=True to the end of my URI. I have tried this and it still gives me the token expired error.
Has anyone had any luck getting this to work.