ers,
I am invoking the AWS Api but I am getting a
Endpoint response body before transformations:
{"__type":"com.amazon.coral.service#SerializationException"}
Endpoint response body before transformations:
{
"__type": "com.amazon.coral.service#SerializationException"
}
Error after a specific post of the same type of jobs. I've enabled detailed Cloudwatch logging but it doesn't give me any additional information. Moreover, the concerned API request body is truncated before and after transformations.
Are there some additional log options to test? I think I just have to take the original API call in JSON and remove fields from them in order to see what makes it break?
I was getting this error on a API Gateway REST API directly integrated with a DynamoDB table using a VTL mapping template. The error started after I changed the mapping template.
HTTP/2 200
{"__type":"com.amazon.coral.service#SerializationException"}
Upon checking the mapping template JSON with an online 'JSON Validator' tool i found that my template wasnt valid JSON. (I had an extra , character in a list of objects). Fixing the template so that it was valid JSON fixed the error
I finally fixed by providing the following mapping template in the integration request:
#set($input = $input.json('$'))
{
"input": "$util.escapeJavaScript($input).replaceAll("\\'", "'")",
"stateMachineArn": "arn:aws:states:xxxxxxxxxxx"
}
A bit of a nasty fix, but it worked...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With