Replies: 12 comments 20 replies
-
Hey @hmtri1011, sorry to hear you're having trouble with this. Could you provide us with a minimal reproduction or the source code if public? That'll help us investigate this from the Vercel side. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I cannot share the source code :(. This issue only happens in re-build time (I cannot replicate on my localhost). I will give you the realtime screenshot on my dashboard, it includes the error and folder output. As you can see the task to load "/designed-in-california" was timed out even though I have this page on my output folder |
Beta Was this translation helpful? Give feedback.
-
:) I love Vercel, it is great, but you are so scrimp. That's true, Heroku free give no limit for that. Vercel can't upload file more than 5MB too, even I want pay to get that, but they say NO :D |
Beta Was this translation helpful? Give feedback.
-
I'm in the same predicament right now. I'm still developing and am saving refactoring for later. The repository url is here: The main directory is: Screenshot of ErrorBuild Logs
Screenshot of Function Log Details |
Beta Was this translation helpful? Give feedback.
-
ok now we know what is the problem, but how we can handle the error, I tried _error.js and 500.js and none of those catches that error anyway, seems like it shows 504 in production and there is no way to handle it |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, even in production. It's really really boring. |
Beta Was this translation helpful? Give feedback.
-
I also have the same problem. Even upgrading Heroku. In other words, I'm not using a free plan.
|
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same issue: Source code: https://github.com/hamza1311/dear-diary-web https://github.com/hamza1311/dear-diary-web/blob/nextjs/src/pages/api/login.ts#L9 https://github.com/hamza1311/dear-diary-web/blob/nextjs/src/pages/index.tsx#L185-L187 What can be done to debug what's happening? |
Beta Was this translation helpful? Give feedback.
-
I'm also randomly hitting this issue. I'm using mongoose in an API endpoint so I thought it had to do with reconnecting to the db, but I added logs to track the time it takes to await the db promise and it is consistently under one second. I'm starting to think this is just a problem with Vercel and there's nothing I can do... My mongoose connection code is here and my failing API is here. If someone at Vercel could check either of these correlation ids it would be really helpful:
|
Beta Was this translation helpful? Give feedback.
-
I'm using elasticsearch in my api endpoint and I'm getting these random errors too. I try to retrigger the exact request in production and cannot get the same 504 error. |
Beta Was this translation helpful? Give feedback.
-
it's very good to know there are so many guys who meets the same problem, I have been stuck in this for almost a whole day...... and I have consulted the vercel people, and they always say it was my upstream service problem, but actuall not, becasue I can run this nextjs ISR service well in locally, which shares the same upstream service as the one on vercel did,,,, and the funny thing is that, there is no request coming in my upstream service when refreshing frontend page on vercel (using ISR) I THINK THE BEST SOLUTION IS TO DEPLOY IT ON A REAL SERVER! |
Beta Was this translation helpful? Give feedback.
-
Hey y'all! There are a few different things to check regarding serverless function timeouts. Please feel free to give the checklist a once-over. Otherwise, if issues persist (on Vercel, and not locally) feel free to reach out either via the Vercel Community Discussions or, for paid plans, via our helpdesk, providing as much information as possible (request path, function name and HAR files, where possible)! |
Beta Was this translation helpful? Give feedback.
-
My site has been used ISR and has ~100 static generation pages. It did work well, but when the static pages need to be revalidated (2 minutes in my case), sometimes NextJS cannot generate those static pages, and my page becomes empty content (this is weird because if cannot generate new static pages, then old static pages must be used).
The next weird thing is this issue doesn't always happen, I'm not sure whether it is Vercel host or NextJS issue.
Above is the log I got from Vercel dashboard and my site within that error (no contents at all).
Any helps would be appreciated, thank guys!!
System information
Beta Was this translation helpful? Give feedback.
All reactions