Closed
Description
Expected Behavior
When working with VPC Lattice-related envelopes I should be able to extract the data regardless of whether it's a plain text string or a JSON-stringified one. This should work on top of the decoding already happening.
Current Behavior
Currently both envelopes treat the body as a JSON string and try to parse it, which means if the body is either a plain text or base64-encoded string the parsing will fail.
Code snippet
N/A
Steps to Reproduce
N/A
Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
22.x
Packaging format used
npm
Execution logs
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped