Closed naivefun closed 9 months ago
Fetch often throws very vague errors, unfortunately.
Try in a different browser. I find that Firefox and Safari in particular is usually the most informative.
We cannot do anything about the errors Fetch throws.
Share your opinions here: https://github.com/whatwg/fetch/issues/526
I'd expect the error could be several kinds of type, but the catched exception is always
TypeError: Failed to fetch
. Is there options wrong?I need access error code like
ERR_NETWORK
ERR_TOO_MANY_REDIRECTS
etc ....test.js
run
node test.js
and it prints outTypeError fetch failed