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

Use "reject" to handle Request.json error #243

Merged

Conversation

Jiahonzheng
Copy link
Contributor

@Jiahonzheng Jiahonzheng commented Apr 1, 2024

This PR contains the following changes:

  1. Use "Promise.reject" to handle JSON parsing error mentioned in No error thrown if invalid json is sent as body  #215.
  2. Update comments. When passing "default_value" as "undefined", it would still be set to "{}" and it won't enter Line 541 error-catch statement.

Use "Promise.reject" to handle JSON parsing error.
Update comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants