-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop when using invalid refresh_token #99
Comments
I'm also able to reproduce. I think this is an issue with the underlying gax library, since we just pass the refresh token along there. I'll check with that team to see what we can do. |
Thanks! |
What is the use case where you'd want to provide your own access token? Access tokens are only good for an hour, and require a refresh token to generate, so it seems like the convenience of letting the library handle it for you would be pretty appealing. |
In our case we have one service responsible for storing/refreshing tokens and many other services using access tokens. So each service doesn't have to store all the secrets, handle errors and also access tokens are requested just once per hour. |
That sounds reasonable. I think we can expose an interface to allow you to define your own credentials to be passed to the service. I'll open a new issue for that feature request, and we can leave this one for the infinite loop. |
Any updates on this? Any workarounds? I experienced it recently. My intention is to use this in a worker queue, and if it loops infinitely I will be unable to to resolve it without intervention. |
Going to close this as a duplicate of issue #246 since that one has more specific information. |
When the refresh token is invalid, client goes into an infinite loop instead of raising exceptions:
The text was updated successfully, but these errors were encountered: