-
Notifications
You must be signed in to change notification settings - Fork 21
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 on all thrown errors by default #90
Conversation
Codecov Report
@@ Coverage Diff @@
## version3 #90 +/- ##
===========================================
Coverage ? 98.75%
===========================================
Files ? 1
Lines ? 80
Branches ? 0
===========================================
Hits ? 79
Misses ? 1
Partials ? 0 Continue to review full report at Codecov.
|
assert.strictEqual(await retryOptions.retryOnHttpError(new Error('ECONNRESET', 'system')), true); | ||
assert.strictEqual(await retryOptions.retryOnHttpError(new AbortError('error!')), true); | ||
// will be fixed to not retry on these by https://github.com/adobe/node-fetch-retry/issues/87 | ||
assert.strictEqual(retryOptions.retryOnHttpError(new TypeError('x is not a valid JSON')), true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: will be false
once #87 is done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdelbick I changed this PR to go into the new version3
branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be merged already. See my additional inline comment.
🎉 Sizewatcher congratulates on the size improvement 📉:
|
Fixes #88
Note: this is for v3 and thus goes into the
version3
branch, notmaster
.Description
Requires #87 as a pre-requisite
Types of changes
Checklist: