I have a simple lambda function that asynchronously makes an API calls and then returns data. 99% of the time this works great. When ever the API takes longer then the lambda co
I just had to increase the timeout and the error is subsided.
I increased it to 5 sec.
This was okay for me because, I wasn't gonna use this Lambda in production.