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

onRetryAttempt doesn't handle promise rejection #119

Open
ScottChapman opened this issue Jul 3, 2020 · 0 comments · May be fixed by #244
Open

onRetryAttempt doesn't handle promise rejection #119

ScottChapman opened this issue Jul 3, 2020 · 0 comments · May be fixed by #244

Comments

@ScottChapman
Copy link

So, following the example for an async onRetryError, I decide to not retry is errno === "ENOTFOUND" (kinda no point, right?)

So, I call my reject function. But I always get an UnhandledPromisRejectionWarning on those.

So it looks like there is no catch block for those?

orgads added a commit to orgads/retry-axios that referenced this issue Dec 20, 2023
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Fixes JustinBeckwith#119.
@orgads orgads linked a pull request Dec 20, 2023 that will close this issue
orgads added a commit to orgads/retry-axios that referenced this issue Dec 20, 2023
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
orgads added a commit to orgads/retry-axios that referenced this issue Dec 20, 2023
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
orgads added a commit to orgads/retry-axios that referenced this issue Jun 13, 2024
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
orgads added a commit to orgads/retry-axios that referenced this issue Jun 13, 2024
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
orgads added a commit to orgads/retry-axios that referenced this issue Jun 13, 2024
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
orgads added a commit to orgads/retry-axios that referenced this issue Jun 13, 2024
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
orgads added a commit to orgads/retry-axios that referenced this issue Jun 13, 2024
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
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 a pull request may close this issue.

1 participant