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
This error occurs if the connection is idle, i.e., no query is submitted, for over four hours.
One solution is set client_session_keep_alive to True such that the background thread pings hourly to maintain the tokens refreshed.
Other way is run some queries periodically, e.g., select 1 every hour or so.
We've been struggling to catch this exception to perform re-authentication for a service account, but can't ever seem to catch the exception, even with a bare try/except - is there something special about this exception that we're missing when we try and catch the exception?
python --version
)?Python 3.7.4
python -c 'import platform; print(platform.platform())'
)?Linux-4.14.123-111.109.amzn2.x86_64-x86_64-with-debian-10.1
pip list
)?Used a persistent connection to the snowflake in Django application. Suddenly it started raising exception.
No exception raised
(part of the traceback is removed)
After the process restart, it started working.
The text was updated successfully, but these errors were encountered: