-
Notifications
You must be signed in to change notification settings - Fork 62
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
Comments
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
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
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 anUnhandledPromisRejectionWarning
on those.So it looks like there is no catch block for those?
The text was updated successfully, but these errors were encountered: