How to extend timeout?

I am receiving a 502 Bad Gateway error. When I run it locally it mentions “LambdaFunction has timed out”

I believe I need to extend the timeout to the max? Which I think is 26 seconds. How can I do that?

image

That’s a Pro feature. Let us know once you upgrade and we can change the limit.

Thank you. I have upgraded to Pro. Please go ahead and extend the timeout.

Also, is that the reason I am getting the 502 most likely?

I see a lot of these:

So probably yes?

The timeout has been increased to 26 seconds. You’d need a re-deploy.

Thank you, I am still getting the error. I am calling a Node API endpoint with Javascript and still get this error. Do you have any idea why?

{"errorType":"LambdaTimeout","errorMessage":"2024-08-03T13:44:39.133Z 91659139-9282-4d88-a7c2-5e1f4cbf0d53 Task timed out after 26.11 seconds"}

The simplest conclusion would be that your API is not responding in 26 seconds.