Closed
Description
Expected Behaviour
For event of type APIGatewayProxyEventV2
, event.decoded_body
or event.json_body
(which calls the former) could result in KeyError
when there is no body.
Current Behaviour

Code snippet
`event.decoded_body` or `event.json_body`
Possible Solution
event.decoded_body
should return empty string orNone
event.json_body
should raiseJSONDecodeError
Steps to Reproduce
As described.
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.11
Packaging format used
PyPi
Debugging logs
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Shipped