Closed ghost closed 7 years ago
@bgail 500 errors should be straightforward to debug. You can try adding a console.log
to see what is going on. Here is some more info on it https://serverless-stack.com/chapters/add-a-create-note-api.html#common-issues
Following this page: https://serverless-stack.com/chapters/add-a-create-note-api.html
When running:
serverless invoke local --function create --path mocks/create-event.json
It returns:I checked: ~/.aws/credentials
~/.aws/config region=us-east-1
In serverless.yml: region=us-east-1 as well
In create.js: region=us-east-1 as well
There are no other helpful messages that tell me why it returned statusCode 500.
Please help. Thanks.