examples
examples copied to clipboard
POST request in AWS-node-express-api fails without include
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