I have a lambda function that is wired up to work with API Gateway. When I run it locally it works, when I simulate it with serverless offline
it works.
But against the published dev endpoint, it returns an error 500 and a json object with an error message:
{
"message": "Internal server error"
}
In the CloudWatch logs, there are no errors. In the callstack in the API gateway endpoint testing page, I see my correct response body in the Lambda portion of the process, and then when it gets to the API gateway response step, something goes wrong.
How should I debug API Gateway when there aren't any errors in logs?