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

POST request in AWS-node-express-api fails without include #25

Open
bigpod98 opened this issue Jun 1, 2022 · 0 comments
Open

POST request in AWS-node-express-api fails without include #25

bigpod98 opened this issue Jun 1, 2022 · 0 comments

Comments

@bigpod98
Copy link
Contributor

bigpod98 commented Jun 1, 2022

https://github.com/docker-slim/examples/tree/master/aws-node-express-api-docker

response output:

POST /stuff
{"statusCode":400,"headers":{"x-powered-by":"Express","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-type":"text/html; charset=utf-8","content-length":"138"},"isBase64Encoded":false,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Bad Request</pre>\n</body>\n</html>\n"}

server log output:


START RequestId: 4d989d5b-39c2-41c8-8c2c-bde5e412e71d Version: $LATEST
    at read (/var/task/node_modules/body-parser/lib/read.js:77:3)2)ex.js:127:23)Error: Cannot find module '../encodings'
END RequestId: 4d989d5b-39c2-41c8-8c2c-bde5e412e71d

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