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
If I leave my code running, without any API calls for 12 hours then my token expires. When a new REST call is made I receive the above logged warning and then the TokenInvalidException. The code does not seem to try to update the token before raising the error or catch the error in any way. I am using the v2 REST API.
I will test an attempted fix involving catching the error in the _req() method that calls _request(), calling the create_session() method to refresh the token and then calling _req() recursively.
The text was updated successfully, but these errors were encountered:
If I leave my code running, without any API calls for 12 hours then my token expires. When a new REST call is made I receive the above logged warning and then the
TokenInvalidException
. The code does not seem to try to update the token before raising the error or catch the error in any way. I am using the v2 REST API.I will test an attempted fix involving catching the error in the
_req()
method that calls_request()
, calling thecreate_session()
method to refresh the token and then calling_req()
recursively.The text was updated successfully, but these errors were encountered: