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
When using
try { const response = await rp(rpOptions); } catch (err) { ... }
A 4XX response would throw an error, causing it to go into the catch
However
try { const response = await fetch(uri, options); } catch (err) { ... }
A 4XX will not throw an error, instead you need to check the response's status code.
It seems like there are a few places that rely on the thrown error to trace failure.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using
A 4XX response would throw an error, causing it to go into the catch
However
A 4XX will not throw an error, instead you need to check the response's status code.
It seems like there are a few places that rely on the thrown error to trace failure.
The text was updated successfully, but these errors were encountered: