Hello Everyone. Would like your help.
I have a table in DynamoDB, with a field which holds an array of hash data. When I’m trying to add items to the field, I’m not getting any error, however, the data is not getting appended into the field. Please find below the code, all the values are present in the params.
One more thing is that the code which is commented when I uncomment and run it the following error is generated.
message: 'The provided key element does not match the schema',
code: 'ValidationException',
time: 2018-12-21T09:49:40.057Z,
requestId: 'L572TVGIBTB5DTODLCN1VEFJ4FVV4KQNSO5AEMVJF66Q9ASUAAJG',
statusCode: 400,
retryable: false,
retryDelay: 18.331571480443966 }
Serverless: According to the API Gateway specs, the body content must be stringified. Check your Lambda
response and make sure you are invoking JSON.stringify(YOUR_CONTENT) on your body object