We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When signal is passed and aborted, the promise is not rejecting.
Same code with native fetch works as intended.
On catch, abort needs to be ignored from retry
The text was updated successfully, but these errors were encountered:
Unable to submit a PR but here is a quick patch;
if (error && error.name && error.name == "AbortError") { reject(error); } else { if (retryOnFn(attempt, frp.retries, error, null)) { // eslint-disable-next-line @typescript-eslint/no-use-before-define retry(attempt, error, null); } else { reject(error); } }
alternative bypass using custom retyOn method;
retryOn: ( attempt: number, retries: number, error: Error | null, response: Response | null ) => { if (error && error.name && error.name == "AbortError") { return false; } if (response && retryCodes.includes(response.status)) { if (attempt > retries) { return false; } return true; } return false; },
Sorry, something went wrong.
No branches or pull requests
When signal is passed and aborted, the promise is not rejecting.
Same code with native fetch works as intended.
On catch, abort needs to be ignored from retry
The text was updated successfully, but these errors were encountered: