-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Page crashes and "Error: Connection closed." appears #49205
Comments
I have the same error. I use [email protected], middleware from next-intl, appDir and next/image + sharp. Deploying on my own ubuntu server with pm2. Same error in console and i see error.tsx boundary |
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
|
@balazsorban44 fully understand this is not reproducible, but due to the lack of useful information in the stack trace and the size of our project I can't really make a minimal reproduction. Can we not lock this issue to collect more feedback from other users? |
@hansottowirtz try to add |
Unfortunately this issue won't be actionable unless a reproduction is provided. If none is provided the issue will be auto-closed. A new issue can be opened with a reproduction if anyone else runs into it. |
I also get this error, have no idea to boil it down, but am trying. |
It only happens on Vercel though, and not locally, so it's difficult. I can see that clicking on a link creates a network request, but the page does not render, and if I wait long enough get a "Connection closed" error |
Actually, it looks like a function is getting stuck rendering, then finally times out after 1 minute. The request id is nowhere to be seen in the logs. |
Hi, I'm gettin the same issue. Then i reload and everything is fine again. |
Hi, this might be related to #50060 which has been updated in |
Same problem happens in v13.4.4-carnay.10, 11 and also v13.4.5. |
For me, it happens on streaming rendering. |
Ran into this same issue. Adding the following to any page that was using Suspense fixed it for us:
Good luck! |
Also getting the same issue. @Ruebs's comment didn't seem to help my issue. I have 3 Suspense's rendering on the page. One from I have tested removing one of the suspenses and that seems to resolve the issue. Only trouble is now that is a blocking call. |
Hi, a fix has been landed in react (related PR facebook/react#26871) for this and has now been applied in the latest version of Next.js (related PR #50604) Please update and give it a try! |
This closed issue has been automatically locked because it had no new activity for a month. 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
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 Binaries: Node: 18.15.0 npm: 9.5.0 Yarn: 3.5.0 pnpm: 7.27.0 Relevant packages: next: 13.3.1-canary.4 eslint-config-next: 13.2.4 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
/
To Reproduce
Navigate to a page
Describe the Bug
It's very rare, but we sometimes get "Error: Connection closed." errors that crash the whole page, on navigation to a page. "Application error: a client-side exception has occurred" appears. It seems to happen when traffic to our website is low. Our website is hosted on Vercel and we're using app dir.
It originates from either here:
https://github.com/facebook/react/blob/aef7ce5547c9489dc48e31f69b002cd17206e0cb/packages/react-server/src/ReactFlightReplyServer.js#L579
or here:
https://github.com/facebook/react/blob/aef7ce5547c9489dc48e31f69b002cd17206e0cb/packages/react-server/src/ReactFlightReplyServer.js#L579
Expected Behavior
This shouldn't happen, or at least show the
error.tsx
error boundary.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel
The text was updated successfully, but these errors were encountered: