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 a process which is very long running, and I am having trouble with auth token expiring. This is despite my calling the refresh_token method.
I think I may have found the problem.
In the constructor the following is called: # Getting session if self.oauth_version == 'oauth1': self.session = self.oauth.get_session((self.access_token, self.access_token_secret)) else: self.session = self.oauth.get_session(token=self.access_token)
However, I don't think that session variable is getting updated with the new access token.
Does this make sense?
Thanks,
Craig
The text was updated successfully, but these errors were encountered:
The example appears to work, in that it gets a new access token and resets the token_time variable. However requests continue to be sent with the old access token, which then begin failing 60 seconds later when the old access token expires.
Thanks for a great library.
I have a process which is very long running, and I am having trouble with auth token expiring. This is despite my calling the refresh_token method.
I think I may have found the problem.
In the constructor the following is called:
# Getting session if self.oauth_version == 'oauth1': self.session = self.oauth.get_session((self.access_token, self.access_token_secret)) else: self.session = self.oauth.get_session(token=self.access_token)
However, I don't think that session variable is getting updated with the new access token.
Does this make sense?
Thanks,
Craig
The text was updated successfully, but these errors were encountered: