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

Retry post request #281

Open
eldoy opened this issue Jun 30, 2024 · 1 comment
Open

Retry post request #281

eldoy opened this issue Jun 30, 2024 · 1 comment

Comments

@eldoy
Copy link

eldoy commented Jun 30, 2024

Is there a reason why post requests are not retried by default?

I have to do this to make post requests work:

if (typeof config.retryCondition != 'function') {
  config.retryCondition = function (error) {
    return axiosRetry.isRetryableError(error)
  }
}
@gitSambhal
Copy link

gitSambhal commented Jul 18, 2024

@eldoy post is not idempotent request and this package only retries the idempotent requests by default. You can read about it https://blog.hubspot.com/website/idempotent-api

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

No branches or pull requests

2 participants