New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discarded requests whilst render worker process is restarting #53353
Comments
"next": "13.4.17",
Reverting back to "next": "13.4.13" removes the error fully. |
Hi, we no longer rely on render workers (they got removed). Please upgrade to |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://codesandbox.io/p/sandbox/nextjs-discarded-requests-whilst-render-worker-process-is-restarting-y6vq47
To Reproduce
npm run build && npm run start
npm run start
in debug mode on VSCode so that I can see the PID tree directly)Describe the Bug
This bug is caused by the render worker restarting whilst it is still rendering the page. The restart mechanism works fine*, but it suffers when there is a request happening.
I originally discuss the issue in #51605 (#51605 (comment), #51605 (comment)), but figured it would be better creating a new one because I think this is a different problem.
Errors generated in this issue are also consistent with worker process restarting due to high memory usage. #49929 (comment)
* in my machine, with a small project. I noticed in a bigger project, sometimes the restart mechanism is broken, and I need to hard restart the whole app.
Expected Behavior
Next.js could rerender the request again after the render worker restarted, but this would not be possible if the response had already been sent partially. An easier solution would be to drop the request altogether and display an internal server error page instead.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
next start, locally
The text was updated successfully, but these errors were encountered: