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

Quiet. No reports in the last two weeks, down from 3 a week at the mid-October peak. A workaround is known.

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

  1. 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
  2. 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
  3. Middleware body clone hands route handlers only the tail of a multi-chunk body (Node runtime, 15.5.27)On GitHub#100150

Do you work on Next.js?

Claim its RAP Sheet to see what your users report and answer them in one place.