Skip to content
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

Add support for http retry on failure #825

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rawalexe
Copy link
Member

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rawalexe rawalexe force-pushed the retry branch 2 times, most recently from 524e43a to 8b676b3 Compare March 28, 2025 21:58
@cookpate cookpate force-pushed the retry branch 4 times, most recently from 5133234 to 529ef7a Compare March 31, 2025 23:02
case 400: // Generic client error
case 408: // Request timeout
// TODO: 429 can contain a retry-after header.
// This should be used as the backoff.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if retry-after is like 2 days, we dont want to block that long. Probably would need to cap the accepted value.

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.

3 participants