[BUG] Promise rejections from minipass-fetch
are not caught (in particularly request-timeout failure)
#315
Labels
Needs Triage
needs an initial review
Is there an existing issue for this?
Current Behavior
If you pass a timeout to
make-fetch-happen
which the call then supersedes, the promise rejection here is not caught causing an "Unhandled Rejection at Promise" exception.Expected Behavior
The try / catch here, should be extended to catch the promise rejection, so the call can be handled by the Retry Handler.
Steps To Reproduce
Node 20, 22
const result = await fetch(url, options)
Expected, Retry to happen
Got,
Environment
The text was updated successfully, but these errors were encountered: