I’m getting ```{ "message": "Internal Server E...
# help
d
I’m getting
Copy code
{
  "message": "Internal Server Error"
}
While on my SST console I get
Copy code
da9b1007-54ce-4620-afd7-9c73d987e2d5 RESPONSE {"statusCode":200,"body":{...},"headers":{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Credentials":true,"Content-Type":"application/json"}}
Does this ring a bell? Furthermore, how should I go at it to debug this kind of errors? When I open my ApiGateway url I indeed see the internal server error
I figure this out: the reason is because I wasn’t stringifying my body. But the question about how to spot this remains
f
hey @Daniel Gato, glad u figured it out. A couple of things that might provide more contexts: • response header • xray trace
But yeah, ur question is legit. For this specific case, SST could do a check and print out a helper message.
And over time, SST should check more common errors like this.
d
I check x-Ray every time but it only showed that the lambda succeeded. Is there a way to see from the get request until the response?
f
oh right, API Gateway HTTP API doesn’t support xray at the moment. Does the response header provide any more detail?
d
No nothing interesting