alexa-samples / skill-sample-nodejs-adventure-game

This tool provides an easy to use front-end that allows developers to instantly deploy code for your story, or use the generated code as a starting point for more complex projects.
Apache License 2.0
510 stars 218 forks source link

DynamoDB #2

Closed oliverbhull closed 1 year ago

oliverbhull commented 7 years ago

Changes made by the user don't log in DynamoDB. The Lambda trigger appears to be working fine but no records are being processed by the Dynamo Table.

rjamison commented 7 years ago

Could you check the logs for your Lambda function to see if there are any errors?

One possibility is that the AWS Role you setup for the function doesn't have access to create the table in DynamoDB, in which case you should see an AWS error message in your logs.

Another is that a DynamoDB table name isn't defined, in which case you should see an error message like:

ERROR: Dynamo DB table name was not provided

rjamison commented 7 years ago

@oliverbhull are you still having the issue? Happy to help if you can provide more detail.

hey-aw commented 7 years ago

I'm having the same issue, with this error in the CloudWatch log: { "message": "One or more parameter values were invalid: Missing the key userid in the item", "code": "ValidationException", "time": "2016-08-27T17:11:15.198Z", "requestId": "4D9QR2LA8R55QH70H5IE1QQUE7VV4KQNSO5AEMVJF66Q9ASUAAJG", "statusCode": 400, "retryable": false, "retryDelay": 0 }

rjamison commented 7 years ago

@AWzone looks like you have the wrong case in the key for your DynamoDB table. "userid" should be "userId".

hey-aw commented 7 years ago

Of course! Thanks for spotting that. I checked it against the screenshot and didn't see the error. 😂