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
Hey all, perhaps I'm not understanding something here
Using to const [err, data] = await to(fetch('http://httpstat.us/500')); console.debug(err, data)
to
const [err, data] = await to(fetch('http://httpstat.us/500')); console.debug(err, data)
Result:
Shouldn't a 500 with a response.ok = false give something in err?
response.ok = false
err
The text was updated successfully, but these errors were encountered:
The promise didn't fail
The promise happened successfully without erroring. Here you'd want to add your own custom additional error checks for when the status code is not 200
Sorry, something went wrong.
Should the issue be closed?
No branches or pull requests
Hey all, perhaps I'm not understanding something here
Using
to
const [err, data] = await to(fetch('http://httpstat.us/500')); console.debug(err, data)
Result:
Shouldn't a 500 with a
response.ok = false
give something inerr
?The text was updated successfully, but these errors were encountered: