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
Sample code provided for "Handling client and server errors" section on main page is invalid. See: https://github.com/node-fetch/node-fetch#handling-client-and-server-errors
class HTTPResponseError extends Error { constructor(response, ...args) { this.response = response; super(`HTTP Error Response: ${response.status} ${response.statusText}`, ...args); } }
Reproduction
Steps to reproduce the behavior:
Expected behavior Modified code that works should be like:
class HTTPResponseError extends Error { constructor(response) { super(`HTTP Error Response: ${response.status} ${response.statusText}`); this.response = response; } }
Screenshots
Your Environment
Additional context
The text was updated successfully, but these errors were encountered:
looking into this issue
Sorry, something went wrong.
PR created - #1666
No branches or pull requests
Sample code provided for "Handling client and server errors" section on main page is invalid. See: https://github.com/node-fetch/node-fetch#handling-client-and-server-errors
Reproduction
Steps to reproduce the behavior:
Expected behavior
Modified code that works should be like:
Screenshots
Your Environment
Additional context
The text was updated successfully, but these errors were encountered: