We want retries keyed on error_code, but some failures don't seem to have one.
Branching on error_code in client retry logic
Common question, written up by the Supero team.
Linkrev 1
1 answer
Accepted answer
Accepted answer
Branch on error_code when it's present and fall back to the HTTP status when it isn't. Creates always carry one (for example ALREADY_EXISTS, VALIDATION_FAILED, PERMISSION_DENIED); most update and delete failures don't. The errors page lists every code. Retry 429 (respect Retry-After) and 503. Don't retry 402: that's a plan limit.
Linkrev 1
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer