-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
TypeError [ERR_INVALID_STATE]: Invalid state: ReadableStream is already closed #55608
Comments
Looks like a form of this error started to happen after: Could someone else double check by using [email protected], verify no error, and then use [email protected], to see the error? |
@icyJoseph yep, I can confirm that the error started after
If I would guess, the error is originated on pipeReadable Diff between |
https://github.com/Hardel-DW/next-issue Same problem with Suspense and "loading.tsx" file. I encounter the same problem when I reload my page before the request is completed, resulting in error messages. If I quickly reload it several times, it seems that the requests accumulate. When I utilize "loading.tsx," the error appears to be different. |
Yup, we're seeing the same in 13.5.1. I've not been able to track down the source of the error. |
Problem still present in 13.5.2 |
experiencing that problem, how to fix? |
This should be fixed by facebook/react#27405 |
|
Has anyone noticed any actual negative effects from this? I'm working on two separate apps more or less simultaneously, and they're both experiencing this same error but both are performing as they should as far as I can tell, but it is a bit concerning... |
@igloo1505 I'm facing this issue too but without having downsides in performance or code execution flow. I'm building an application for production. Have you seen/felt any real consequences/crashes issue with this yet or found a workaround? I really don't wanna rollback next to 13.4.5. |
Should be fixed by #56012 which carried the react change |
I'm also still getting it on Next.js 13.5.3 |
The fix is landed in 13.5.4-canary.2 |
upgraded to 13.5.4-canary.2 |
@cheryl-c-tirerack That's a different issue, it just happen to originate from the same file. I'm not sure where we need to handle it. |
@cheryl-c-tirerack would be possible for you to file a reproduction in new issue? That would be super helpful for investigation 🙏 |
I wouldn't begin to know what to reproduce minimally. I have a full backend running locally, and many nested dynamic paths-- all proprietary. I'm using app directory, with TanStack/react-query. |
I get the same issue as well. When I run Playwright tests it happens in the same place the old error was happening. |
I get the same issue. is there any fix for this ? |
Try updating to the latest React canary - now I get the correct error message instead of ERR_INVALID_STATE
The correct message I get after upgrading
|
Same here on
Which Sentry identified that may be related to this other issue #49896: |
I tried updating next and node to the latest versions, but the error was still present. It seems to be related to how caching is handled. Changing caching to dynamic worked for me.
|
I get this error when I refresh a page quickly and one after another. |
Je reçois aussi le problème sur Next.js 13.5.3 mais j'ai l'impression que l'erreur ce déclenche lorsque j'utilise suspense sur une page |
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. |
Link to the code that reproduces this issue
https://github.com/willianrod/next-readable-stream-error
To Reproduce
/auth/login
/sample/list
after resolving the promiseCurrent vs. Expected behavior
Current: Right now, when I'm navigating between pages with server components I'm seeing errors on my development console.
Expected: When navigating between pages no errors should be prompted
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:23 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6020 Binaries: Node: 18.16.0 npm: 9.5.1 Yarn: 1.22.19 pnpm: 8.6.12 Relevant Packages: next: 13.5.1 eslint-config-next: 13.5.1 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
App Router
Additional context
There is a discussion with more people with the same issue. The latest request was to update to the latest version
13.5.1
and see if the issue was still happening.#55027
The text was updated successfully, but these errors were encountered: