1 person reported
All time, since Oct 13.
Route body truncated to last chunk
“The logged length is sometimes the full body and sometimes the last chunk only.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/next-js/issues/12497/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Route handlers receive only the last chunk of multi-chunk bodies. With middleware in front, a slow multipart POST arriving in several socket reads reaches request.body.getReader() as the last chunk only.
Is this your bug?
File my report- Where
- Middleware
- Error text
Failed to parse body as FormData- Versions
- 15.5.27. Still reported on the newest version, 15.5.27.
- How bad
- Breaks a normal workflow. Some reports say it used to work.
Original reports3, newest first
- Middleware body clone hands route handlers only the tail of a multi-chunk body (Node runtime, 15.5.27 and 16.0.0)On GitHub#100157
- Middleware body clone hands route handlers only the tail of a multi-chunk body (Node runtime, 15.5.27 and 16.0.0)On GitHub#100155
- Middleware body clone hands route handlers only the tail of a multi-chunk body (Node runtime, 15.5.27)On GitHub#100150