We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
TypeError: Failed to fetch
I need access error code like ERR_NETWORK ERR_TOO_MANY_REDIRECTS etc ....
ERR_NETWORK
ERR_TOO_MANY_REDIRECTS
test.js
import ky from "ky"; ky("https://www.githubbbbbb.com") .text() .catch((e) => { console.log(e.name, e.message); });
run node test.js and it prints out TypeError fetch failed
node test.js
TypeError fetch failed
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
We cannot do anything about the errors Fetch throws.
Share your opinions here: whatwg/fetch#526
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: