Skip to content

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

Description

@bigpod98

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions