GeezerVison is showing github.com — Automatic retry request for all rate limit responses · Issue #460 · googleapis/google-cloud-node
Automatic retry request for all rate limit responses #460DescriptionWe should have a global setting to automatically retry requests (with exponential back-off) that receive a rate limit response. It should be turned on by default, have a retry limit of 3-5 that is configurable and additionally be configured to be turned off altogether.
Something like:
var gcloud = require('gcloud')({ retryLimit: 5 });
and
var gcloud = require('gcloud')({ autoRetry: false });
We should be clear that this setting is only for responses related to rate limits being reached and not that it will retry every request regardless of response error. Activitystephenplusplus commented on Mar 23, 2015 Just look for error code 429: TooManyRequests?
The Google Cloud Storage JSON API per-project usage limit was exceeded. If your application tries to use more than its limit, additional requests will fail. You can see API usage limits on the Quotas pane in the Google Developers Console.
And 503: ServiceUnavailable?
Please reduce your request rate.
tmatsuo commented on Mar 25, 2015 I think you may want to also look for 500.
There are inevitable non-zero intermittent 5xx errors with distributed systems like the current supported Google APIs, I would like to retry in such cases, as well as rate limited errors. ryanseys commented on Mar 28, 2015 ContributorAuthor More actions Apparently it's there's no way for me to test this locally because I never get rate limited on my machine. I have no idea why that is. I literally just made 100 buckets in ~1 second, no rate limit.

tmatsuo commented on Mar 28, 2015 Maybe you can explicitly configure the lower user limit on your project? ryanseys commented on Mar 30, 2015 ContributorAuthor More actions tmatsuo commented on Mar 30, 2015 Does it always happen?
If not, they are just intermittent errors, and they're not limited only to Pub/Sub.
What was the HTTP status BTW? ryanseys commented on Mar 30, 2015 ContributorAuthor More actions No it doesn't always happen. Just trying to track down the code because this occurred with rate limiting PR merged (checking and retrying 500, 503 and 429)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|