Request json is null #1610
Unanswered
josesalasdev
asked this question in
Ideas
Replies: 2 comments
-
@tomchristie this makes sense for you? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When calling this method
await request.json()
it is common to encounter this exceptionraise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
when the body is null, my idea is to expose a flag that allows to control this error:Path module:
starlette/requests.py
this makes sense for you and the users ?
josesalasdev@16c1c8e
Beta Was this translation helpful? Give feedback.
All reactions