We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
body-parser 2.x used in express 5 changed how it checks if the post body was read to this: https://github.com/jshttp/on-finished/blob/master/index.js#L76
At the same time, serverless-http is setting the body to a buffer. Also, on this line it's saying the body is not readable https://github.com/dougmoscrop/serverless-http/blob/master/lib/request.js#L9
because of this, body-parser middleware does not get executed.
If in request.js readable is changed to true, everything is working. Maybe that should be changed to:
readable: Buffer.isBuffer(body)
Thank you
The text was updated successfully, but these errors were encountered:
Thanks I will look in to this
Sorry, something went wrong.
Facing same issue. slsHttp is returning Buffer as a body instead of JSON.
slsHttp
No branches or pull requests
body-parser 2.x used in express 5 changed how it checks if the post body was read to this:
https://github.com/jshttp/on-finished/blob/master/index.js#L76
At the same time, serverless-http is setting the body to a buffer.
Also, on this line it's saying the body is not readable
https://github.com/dougmoscrop/serverless-http/blob/master/lib/request.js#L9
because of this, body-parser middleware does not get executed.
If in request.js readable is changed to true, everything is working.
Maybe that should be changed to:
Thank you
The text was updated successfully, but these errors were encountered: