Next.js Discord

Discord Forum

Web app hosted on AWS amplify times out

Unanswered
Yellow-headed Blackbird posted this in #help-forum
Open in Discord
Yellow-headed BlackbirdOP
Hi there, I am currently building a web app that uploads a bunch of files to open ai api and then makes an api call to open ai api. I know that the api call to open ai works as I tested it with a simple prompt however for the more complex bigger prompt I see an error that the request took too long.

The web-app is built in next js

Here are some logs.

2025-08-26T08:51:08.082+10:00
Starting request using compute deployment_id: 0000000008 and compute version: $LATEST
2025-08-26T08:51:08.189+10:00
[INFO] 51:08.189 foo - Uploading files...
2025-08-26T08:51:12.073+10:00
[INFO] 51:12.71 foo - Uploaded files: [
2025-08-26T08:51:12.073+10:00
'file-LR7wzHqzrEe5QHRiG48yH2',
2025-08-26T08:51:12.073+10:00
'file-FazEergKtmbfYktk5qRBxR',
2025-08-26T08:51:12.073+10:00
'file-6s8hXHzaUM1tAqFtwYnh48'
2025-08-26T08:51:12.073+10:00
]
2025-08-26T08:51:36.082+10:00
Request timed out - your application took too long to respond

2 Replies

Yellow-headed BlackbirdOP
Looks like I found the issue. AWS amplify has a timeout of 29 seconds. What would be a good way to solve this?
I think the calls average around 2 min