Replies: 1 comment 5 replies
-
Hi, could you try to redeploy your application and let us know if you're still having issues? We've recently fixed an edge-case regarding applications that returned a You mentioned that the applications crashes with an exit code of 129, which means your code raised an uncaught exception. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
So, basically we have deployed our finished project to Vercel. Locally the project works great. We are using Next.js 14.1 (but with Pages Router) and using
Lucia Auth
for our Authentication with aMongoDB
database. In localhost, the project runs great and without errors. But once deployed into Vercel (have double checked to have the correct .env variables), when logging into the project, 1 of 2 endpoints that are being called from the/api
routes "crashes" for no reason. Taking a look at the logs, they are not very useful since they only show:500 Internal Server Error
Node.js process exited with exit status: 129. The logs above can help with debugging the issue.
And there is no more log info. Last week it was showing more information, couldn't get a copy or screenshot of that but it was also telling something about a response from node that was being called after it was already ended (
response.end()
)Example
No response
Steps to Reproduce
The endpoints that give errors (sometimes is one, sometimes is the other one) are coded liked this:
/api/v1/users/getAllUsersButAdmins
/api/v1/gyms
I have already tried changing the final responses for something like:
But it is the same thing. The crazy thing is that this is also happening in random moments. Maybe I have navigated to other pages of the project, and when I come back to the main page, some endpoint crashes. And locally they work smoothly and correctly.
Maybe it's also useful to say that we are using
Node 20.9
locally to run the project.Have searched for other similar posts but they do not have answers from Vercel team or they don't get to any solution.
Thanks in advance for the time!
Beta Was this translation helpful? Give feedback.
All reactions