so I have a situation where I have a lambda function written. So everything is working perfectly fine. All of a sudden when I run my end to end test making multiple http requests to api gateway , which invokes my lambda, I end up with
{"message": "Internal server error"}
Now this happens for a few minutes (very random). A few minutes later My lambda function starts to work when I invoke it using my browser (api-gateway). In cloudwatch logs I just get this log output below
END RequestId: a31629a2-81ae-46a2-8836-7fcd0f91edda
Not really a detailed explanation as to why its happening. I know theres nothing wrong with my code possibly, since I do get successful responses.