Q:

Invoking AWS Gateway API: com.amazon.coral.service#SerializationException

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? 

A:

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...

