Closed xiongtx closed 1 year ago
Do you know what the http status code was?
Edit: https://docs.aws.amazon.com/awssupport/latest/APIReference/CommonErrors.html says it would have been a 400.
Looking at AWS docs
If you're not using an AWS SDK, you should retry original requests that receive server (5xx) or throttling errors. However, client errors (4xx) indicate that you need to revise the request to correct the problem before trying again.
This is a bit contradictory in this case since they send us a 400 with an indication embedded in a JSON response that it's a ThrottlingError. That said, based on "or throttling errors," I'm inclined to agree that their advice is to retry this.
Fixed in 05117f035b507a0438145107853130f38b1d0464
Leaving this open until it's released.
Released in version 0.8.656
aws-api
has automatic retries, but doesn't treatThrottlingException
as a retriable error by default.The default retriable anomalies are
busy
,interrupted
, andunavailable
, butThrottlingException
results in anincorrect
. Would it make sense for it to bebusy
instead?