2 people reported

All time, since Sep 28.

Server actions 500 on stale shell

“That re-render uses the same req, so handleAction runs a second time on an already-consumed body.”

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/4137/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 4 a week at the late-September peak.

Server actions return 500 when prerendered shell is stale. Under next start with cacheComponents on, background revalidation re-runs handleAction on the same request's already-consumed body.

Is this your bug?

File my report
Where
Server Actions
Error text
SyntaxError: Unexpected end of JSON input
Versions
16.3.4 to 16.3.6
Platforms
macOS
How bad
Breaks a normal workflow.

Not quite your bug?

  1. No-JS form submits return 5001 person

Original reports4, newest first

  1. Server action POST on a stale PPR shell re-runs the action handler on the same request (16.3.4, 16.3.8)On GitHub#99564
  2. Server action POST on a stale PPR shell re-runs the action handler on the same request (16.3.4, 16.3.8)On GitHub#99563
  3. Server action POST on a stale PPR shell re-runs the action handler on the same request (16.3.4, 16.3.8)On GitHub#99559
  4. Server action returns 500 under next start when the page's prerendered entry is stale (background revalidation re-runs the action on the consumed body)On GitHub#99373

Do you work on Next.js?

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