amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

is there any way to increase timeout time? next.js server.

Open yshaish1 opened this issue 2 years ago • 10 comments

Before opening, please confirm:

App Id

NEW_APP

AWS Region

us-east-2

Amplify Hosting feature

SSR

Question

is there any way to increase the 30s timeout when I am using next.js node server? I have some long tasks, and they take more than 30s. is there any way to make it 60s or some?

thanks

yshaish1 avatar Jan 03 '23 16:01 yshaish1

@yshaish1 👋 , thanks for raising this question. Unfortunately, increasing the timeout of the Lambda functions hosting SSR apps using the Compute platform is not supported at this time. We will keep this open as a feature request instead.

Jay2113 avatar Feb 17 '23 17:02 Jay2113

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

github-actions[bot] avatar Feb 17 '23 17:02 github-actions[bot]

Would be great to be able to override this

espenbye avatar May 22 '23 06:05 espenbye

It would be great to have this configuration available in Amplify

LTMenezes avatar Jun 29 '23 15:06 LTMenezes

Cloudfront configuration is hosted by AWS, I know Amplify is a high level product, but 30s timeout is doesn't make sense, and no way to configurate...

indiejoseph avatar Sep 27 '23 16:09 indiejoseph

The 30s timeout on Amplify limits our quick demos and may force architecture changes, counter to why we chose Amplify. Essential to have adjustable or significantly increased timeouts—please prioritize. Thanks!

elitar avatar Mar 11 '24 09:03 elitar

Is there any solution. I have same issue!

mustafadalga avatar Jul 23 '24 10:07 mustafadalga

This is becoming a blocker now and its forcing us to move away from hosting the application from the Amplify to somewhere else. There are many requests which takes more than 30 seconds to process them in the backend. Limiting the timeout to 30 seconds is not helping us.

KPOINT-Team avatar Jul 29 '24 11:07 KPOINT-Team

This issue has killed our production app as well. Will need to rewrite a lot of our code to poll for changes or need to move to vercel where we can have greater than 30 second timeout.

StevenBarnett1 avatar Sep 13 '24 02:09 StevenBarnett1

We are going to finish the request normally because of this max 30 seconds timeout, then poll for results to work around this issue.

The experience remains the same for the user, we just have to poll and add a manual timeout on our end.

flaviokicis avatar Oct 07 '24 20:10 flaviokicis