Skip to content
New issue

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

Issue with "Response.json()": Possible exceptions not documented #13208

Open
alexschrod opened this issue Feb 22, 2022 · 0 comments
Open

Issue with "Response.json()": Possible exceptions not documented #13208

alexschrod opened this issue Feb 22, 2022 · 0 comments

Comments

@alexschrod
Copy link

@alexschrod alexschrod commented Feb 22, 2022

MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Response/json

What information was incorrect, unhelpful, or incomplete?

This function can raise exceptions, but these are not documented. Try using it on a response that is not actually JSON, e.g.

Specific section or headline?

Exceptions

What did you expect to see?

The list of possible exceptions and their causes. See the fetch documentation for an example of a function that documents its exceptions well.

MDN Content page report details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants