NextJA App Backend API Request Timeout Issues - Need Timeout Limit Increase

Hello Netlify Support Team,

I am experiencing some issues with my NextJA app’s backend API requests on my site (Site ID: 931c9906-fd27-4f13-83e9-bad79a359d82) with the Netlify subdomain: hey-atom.netlify.app. I’ve found that the API requests are being cancelled after 10.01 seconds. This seems to be caused by a 3rd party API call underneat my NextJS api, that takes longer to complete, resulting in the cancellation of the request due to the timeout limit.

I came across information that it’s possible to request an increase in the timeout limit specifically for my site. I would like to kindly request that my site’s timeout limit be increased to 26 seconds or any suitable duration that will accommodate the 3rd party API call and prevent cancellations.

Thank you for your assistance in resolving this issue. I appreciate your prompt attention to this matter.

Best regards,
Max

Hi @max_netlify_atom :wave:t6: ,

Thanks for reaching out! I increased your function timeout. Please be sure to redeploy to see this in effect.

1 Like

Halo @SamO, i need increase my app timeout limit too, can you help me?

sure can do! What’s the site iD?

@SamO this my Site ID : 5a9b11a3-8cb5-4c27-9e39-9ce53d78fdbf

Hiya :wave:t6: I have increased the function timeout. Please re-deploy to see this take effect.

Hi! I have a timeout within a function while calling mailchimp api on the domain but not on the myproject.netlify.app preview url… do you know why ?

No. We need a site name to check. You can also refer to: [Support Guide] Why is my function taking long or timing out?

1 Like

this one : idugieosugioerugioudrgdsgidrgiodjgkld so it works on the app subdomain but not on the real attached domain. thanks

Hi @kparis,

Thanks for providing the site name. Are you still having issues? I’m not seeing any timeouts in the function log. Could you provide steps to reproduce the issue? Or a screenshot of the error you’re seeing? Also have you gone through the Support Guide previously mentioned?

(post deleted by author)

Hi thanks, yes please go to a product and click on a size, then preorder and add a fake email you’ll see it in the logs.

dafafd9a INFO error ---------------------------------------Mar : dafafd9a INFO Error: Timeout of 120000ms exceeded
at RequestBase._timeoutError (/var/task/node_modules/superagent/lib/request-base.js:670:13)
at Timeout. (/var/task/node_modules/superagent/lib/request-base.js:685:12)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
timeout: 120000,
code: ‘ECONNABORTED’,
errno: ‘ETIME’,
response: undefined
}

can you set a higher timeout please (max)? + error : INFO error ---------------------------------------PM: 19dbc9d8 INFO Error: socket hang up
at connResetException (node:internal/errors:720:14)
at TLSSocket.socketOnEnd (node:_http_client:525:23)
at TLSSocket.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: ‘ECONNRESET’,
response: undefined
}

This is not a Netlify issue. It’s coming from your libraries saying that some kind of a timeout exceeded.