-
-
Notifications
You must be signed in to change notification settings - Fork 423
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
The default retry options ensure POST
requests are not retried. This logic makes sense when the target HTTP server can respond.
However, when there is a network error such as a connection timeout or a DNS resolution that's taking too long, then a TypeError: fetch failed
is thrown.
It would be convenient if these "network errors" were retried, regardless of the configured methods
and statusCodes
in the retry
options 🙏
Refs:
- is-network-error: https://github.com/sindresorhus/is-network-error
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed