-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add RefreshError to retryable errors #312
Comments
Duplicate of #223 ? |
IIUC, #223 is about |
Hi, I'm experiencing the same transient issues recently but in my case metadata server returns 404 not found. The error is: |
Retry logic was added in googleapis/google-auth-library-python#1113. In the case of the 500 errors, there is an open question in googleapis/google-auth-library-python#984 requesting more information about how often they are occurring. Please open a new issue in https://github.com/googleapis/google-auth-library-python as that is where the retry logic should be improved. |
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is your feature request related to a problem? Please describe.
RefreshError
can be raised if GCE metadata server returns 500 error for service account token. But, we currently retry only forTransportError
at retry.py.This makes GCP libraries depending on the default retry fail by the transient auth error.
Describe the solution you'd like
Add
auth_exceptions.RefreshError
toif_transient_error
.Describe alternatives you've considered
Core API users can use a custom retry that handles
RefreshError
as retryable.Additional context
See this screenshot of a RefreshError example that happened at GCS API in a Dataflow job.
The text was updated successfully, but these errors were encountered: