Skip to content

Do not retry requests that failed with a permanent client error - #116

Merged
Sholofly merged 1 commit into
devfrom
fix/no-retry-for-client-errors
Oct 30, 2026
Merged

Sholofly merged 1 commit into
devfrom
fix/no-retry-for-client-errors

Conversation

@Sholofly

Copy link
Copy Markdown
Owner

request() retried every connection error three times, including HTTP 400, 401 (after a token refresh), 403 and 404 responses that a retry cannot fix. Give up immediately on 4xx errors, except 408 and 429, which are still retried, as are network errors and 5xx responses.

request() retried every connection error three times, including HTTP
400, 401 (after a token refresh), 403 and 404 responses that a retry
cannot fix. Give up immediately on 4xx errors, except 408 and 429, which
are still retried, as are network errors and 5xx responses.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Sholofly
Sholofly merged commit 674a7f3 into dev Oct 30, 2026
2 checks passed
@Sholofly
Sholofly deleted the fix/no-retry-for-client-errors branch October 30, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant