examples icon indicating copy to clipboard operation
examples copied to clipboard

aws-node-rest-api-with-dynamodb receiving "Internal server error"

Open AlbertoSinigaglia opened this issue 4 years ago • 1 comments

Hi, I've literally just copy pasted your code from aws-node-rest-api-with-dynamodb... however as soon as I do a request, I get:

{
"message": "Internal Server Error"
}

And no error is shown or logged... any idea? Have you set some config in particular to make this work? (idk, some permission on Dynamo or the Lambda or something like that)

AlbertoSinigaglia avatar Feb 22 '21 20:02 AlbertoSinigaglia

An example with the following tech stack up to date:

  • node v18.11.18
  • uuid v9.0.0
  • @middy v4.0.9
  • aws-lambda v8.10.109
  • serverless v3.26.0
  • serverless-dynamodb-local v0.2.40
  • serverless-offline v12.0.3
  • serverless-webpack v5.11.0
  • source-map-support v0.5.21
  • ts-loader v9.4.2
  • typescript v4.9.4
  • typescript-json-schema v0.55.0
  • webpack v5.75.0
  • AWS SDK v3

Can be found at http://medium.com/@durazno.marcodali/create-a-serverless-backend-for-your-new-project-with-lambda-dynamodb-and-typescript-in-a-couple-57b7a44b9a50

marcodali avatar Jan 17 '23 17:01 marcodali