maxDuration doesn't work | 504 Timeout error
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
Hello, everyone,
I'm using Next.js 13.5.5 with the app router configuration.
I've encountered an issue where some of my endpoints take longer than 15 seconds to run, which is the limit on the PRO plan.
This results in a 504 gateway error from Vercel.
In an attempt to extend the execution duration of the /api, I found this documentation: https://vercel.com/docs/functions/configuring-functions/duration#node.js,-next.js-13.5-or-higher,-sveltekit,-and-remix.
After using their code and updating my project, it seems that nothing has changed.
It appears this might be a well-known issue, as discussed here: https://github.com/orgs/vercel/discussions/4248#discussioncomment-7310341.
I tried the suggested solution, but I'm still encountering the 504 error.
How can I solve this ?
I'm using Next.js 13.5.5 with the app router configuration.
I've encountered an issue where some of my endpoints take longer than 15 seconds to run, which is the limit on the PRO plan.
This results in a 504 gateway error from Vercel.
In an attempt to extend the execution duration of the /api, I found this documentation: https://vercel.com/docs/functions/configuring-functions/duration#node.js,-next.js-13.5-or-higher,-sveltekit,-and-remix.
After using their code and updating my project, it seems that nothing has changed.
It appears this might be a well-known issue, as discussed here: https://github.com/orgs/vercel/discussions/4248#discussioncomment-7310341.
I tried the suggested solution, but I'm still encountering the 504 error.
How can I solve this ?
2 Replies
Toyger
https://vercel.com/help you can
create a case to talk with their support directly, probably some thing on their side.Hey @Transvaal lion sorry for the ping, but did u get any solution? My team is using
14.1.4 and we are facing the same issue, even after setting maxDuration to 60 it still timesout at 15