Lambda function URLs and Compression #1168
-
I have started using Lambda function URLs and have a question.
Here is the code:
The result is that Postman tell me "Error: Decompression failed". I am assuming that something happens in the Lambda function URL like "Content type conversions in API Gateway". Is there a content header that tells the Lambda function URL to leave the body alone or is there a better way to do this? Why am I doing this? Because of the Lambda payload size constraint of 6MB. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @genifycom, Thanks for posting the question. The following articles might be helpful:
Please review. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks for that. BTW, I did try application/octet-stream but that didn't seem to help. I will have to investigate further, or attach the function to an API gateway. |
Beta Was this translation helpful? Give feedback.
Hi @genifycom,
Thanks for posting the question. The following articles might be helpful:
To have the binary payload passed through without modification, you must enable the passthrough behaviors on the API.
)Please review.
Thanks,
Ashish