components
components copied to clipboard
AWS Lambda Express component POST request's body decode error
Description
I try to put my little node js code on the AWS lambda function created via our AWS express component. it works fine when running on localhost but received content decoding failed error when running at lambda and API gateway. I guess it might be the problems at AWS API gateway configurations but failed to solve it by myself. Asking for help (TдT)
Additional Data
my post request is via google OAuth to get the identification something like below but via express js.
OST /token HTTP/1.1
Host: oauth2.googleapis.com
Content-Type: application/x-www-form-urlencoded
code=4/P7q7W91a-oMsCeLvIaQm6bTrgtp7&
client_id=your-client-id&
client_secret=your-client-secret&
redirect_uri=https%3A//oauth2.example.com/code&
grant_type=authorization_code
get an error in chrome net::ERR_CONTENT_DECODING_FAILED 200 (OK)
E.g. stack trace, version, operating system, ... the latest version, developed on win10