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

fix(retry): retry on limits error #90

Merged
merged 1 commit into from
Mar 18, 2024
Merged

fix(retry): retry on limits error #90

merged 1 commit into from
Mar 18, 2024

Conversation

pilartomas
Copy link
Collaborator

No description provided.

Signed-off-by: Tomas Pilar <tomas.pilar@ibm.com>
@pilartomas pilartomas requested a review from Tomas2D March 18, 2024 07:14
@pilartomas pilartomas enabled auto-merge (squash) March 18, 2024 07:19
@@ -53,7 +53,7 @@ export class Client {
const _client = createApiClient({
baseUrl: endpoint,
headers,
fetch: fetchRetry(fetch) as any, // https://github.com/jonbern/fetch-retry/issues/89
fetch: fetchRetry(fetch, { retryOn: [429] }), // Retry on network errors and when rate limits or concurrency limits (due to external factors) are hit
Copy link
Member

Choose a reason for hiding this comment

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

Consider passing explicit retry parameters (interval, ...) and other status codes.

@pilartomas pilartomas merged commit 1038369 into main Mar 18, 2024
5 of 6 checks passed
@pilartomas pilartomas deleted the fix-rate-limit-retry branch March 18, 2024 07:32
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.

2 participants