-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Description
I'm using React Router as a...
framework
Reproduction
Go to https://stackblitz.com/edit/vitejs-vite-f2hy31xg
click on Log on server twice
the first time succeeds, the second time fails
System Info
System:
OS: macOS 15.4.1
CPU: (10) arm64 Apple M1 Pro
Memory: 90.55 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.1.0 - ~/.local/share/mise/installs/node/24.1.0/bin/node
npm: 11.3.0 - ~/.local/share/mise/installs/node/24.1.0/bin/npm
pnpm: 10.12.3 - ~/.local/share/mise/installs/node/24.1.0/bin/pnpm
npmPackages:
react-router: 0.0.0-experimental-7e26cc4bc => 0.0.0-experimental-7e26cc4bc
vite: ^7.0.0 => 7.0.0Used Package Manager
pnpm
Expected Behavior
no error
Actual Behavior
I get the following error, saying that Body has already been read
here is the error
<-- POST /
TypeError: Body is unusable: Body has already been read
at consumeBody (https://sb15gahbn3b-qzob.w-credentialless-staticblitz.com/builtins.97a3df4f.js:97:226853)
at _Request.formData (https://sb15gahbn3b-qzob.w-credentialless-staticblitz.com/builtins.97a3df4f.js:97:226169)
at processServerAction (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:2262:49)
at unstable_stream (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:2364:31)
at respondOrStreamStaticContext (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:671:23)
at eval (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:810:22)
at runMiddlewarePipeline (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:1508:24)
at async Object.query (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:725:24)
at async generateRenderResponse (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:2355:18)
at async matchRSCServerRequest (/home/projects/sb1-5gahbn3b/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-VYYOGKZK.mjs?v=f40a5151:2199:18)
--> POST / 500 11ms