-
Notifications
You must be signed in to change notification settings - Fork 26k
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
Error: invariant: dynamic responses cannot be unchunked #45509
Comments
+1 |
Encountered this issue at 13.0.6. Other than getting it seemingly randomly, one situation where it was triggered is running online schema validator |
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
Happened to me as well, with app directory enabled. Seems like it was caused by another error, in this case I was desctructuring Edit: Nevermind, seems like error still appears randomly on production. Started happening after upgrading to Next.js 13.2.3 and switching to app directory. |
Screen.Recording.2023-03-13.at.10.32.23.PM.movI also get the same error when I upgrade to version I confirm that the error occurs when the User-Agent is a bot like Google Bot |
Since you figured out how it is triggered, did you perhaps find severity of this bug? Does it make something work worse or does it just leave error in log without breaking anything (requesting bot included)? |
the problem is that for me it's happening since 13.1.4, but that was the first version that I did try and also ran on prodution, so it might be occurring from even earlier versions. And the worst is that I cannot give any steps to reproduce it, as I haven't done anything special.. having 1 page, 1 fetch and react components loaded is something that I don't think has anything special on it.. |
I would try this out with increasing my version to 13.2.3 and will leave feedback here if it worked for me. Thank you! |
I'm experiencing this in production as well, next v13.2.4 |
Still happens in 13.3. This error makes up most of production logs, being outputed regularly. |
next 13.4.1 AppRouter is in use and yarn build After a few hours or days, you will see an error and the
|
I was using a custom server implementation, where I use app.renderToHTML. This causes the issue for me. |
We're getting the same issue in v 13.4.4 with AppRouter.
In
|
I'm getting the same error v 13.4.4. Did you solve it? Thanks! |
Was resolved in #52581 |
Closing as per the above comment. Feel free to reopen with a new reproduction if you are still seeing this! |
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
A next 13 production build hosted on GCP Kubernetes
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
it's a private repository and I cannot share the code. I think it should be easily reproducible
To Reproduce
Just run the latest Nextjs 13 on production
Describe the Bug
Hello,
I have recently installed the latest next 13 ("next": "13.1.4"), and ran it on production (despite being experimental yet) and started receiving occasional error logs on the server side. However, the web app itself loads properly and everything works normally so far (2 days up time on production).
Here is the error:
Error: invariant: dynamic responses cannot be unchunked. This is a bug in Next.js at RenderResult.toUnchunkedString (/usr/src/app/node_modules/next/dist/server/render-result.js:16:19) at /usr/src/app/node_modules/next/dist/server/response-cache/index.js:103:57 at processTicksAndRejections (node:internal/process/task_queues:96:5)
Expected Behavior
Not to have this bug log in Next 13 I suppose
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: