Open
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