Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Lambda Express component POST request's body decode error #835

Open
billtong opened this issue Nov 5, 2020 · 0 comments
Open

AWS Lambda Express component POST request's body decode error #835

billtong opened this issue Nov 5, 2020 · 0 comments

Comments

@billtong
Copy link

billtong commented Nov 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant