-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: Validation raises TypeError when invalid JSON comes #8153
fix: Validation raises TypeError when invalid JSON comes #8153
Conversation
0b926ea
to
76c53c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we need special treatment when the body is null
.
How? When is the |
I sent #8161 |
See IncomingRequestTest::testGetJSONReturnsNullFromNullBody()
76c53c6
to
bfcae8d
Compare
Done. |
Needs #8161Description
Fixes #8134
IncomingRequest
will throwHTTPException
when the body is invalid as JSONHTTP.invalidJSON
.Checklist: