-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
BigQuery: Add "Forbidden: 403 Exceeded rate limits" to list of retryable exceptions #6434
Comments
@bencaine1 Thanks for the report! @tswast Can you please figure out with the back-end team why they would return a 403 here, rather than the expected 429? RFC 2616 specifically states about a 403:
Versus what it RFC 6585 for 429:
|
The short answer for why ratelimit pushback is communicated back using 403 vs 429 is that the behavior |
FYI: internal issue 119203044 was closed as wontfix, as this would be a breaking change. The client-side workaround would be to look for "Exceeded rate limits" and retry in that case. (Also, it might actually make sense to always retry on 403 to give the auth library a chance to refresh credentials.) |
@twast any traction on this ? We have implemented our own resubmit logic for loads but we are now hitting a lot of quota limits on queries too. |
Since this requires retrying multiple API requests (not just the "get query results" request that is actually raising the error), this feature request will require careful design work before we can proceed with implementation. CC @crwilcox |
Closing in favor of https://github.com/googleapis/google-cloud-python/issues/9781 |
OS: Linux dc32b7e8763a 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 x86_64 x86_64 GNU/Linux
Python version: Python 2.7.6
google-cloud-bigquery: 1.6.0
We're getting the following error:
In _should_retry, it should retry if
isinstance(exc, Forbidden) and 'Exceeded rate limits' in str(exc)
.The text was updated successfully, but these errors were encountered: