2 people reported

All time, since Oct 13.

Server Action redirect fetch loops

“The user still reaches /target via the fallback plain redirect, but the action loses its single-round-trip response and the error is logged every time.”

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/12213/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

Server Action redirect fetch loops when rewrite drops empty _rsc. Middleware or proxy rewrite drops an empty _rsc hash, so the redirect fetch to /target?_rsc redirects to itself.

Is this your bug?

File my report
Where
Middleware rewrites
Error text
failed to get redirect response [TypeError: fetch failed]
Versions
16.3.4 to 16.3.8
Platforms
Linux
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Intercepted route ignores params2 people

Original reports2, newest first

  1. Middleware rewrite drops an empty _rsc, so a Server Action's redirect() fetch loops until "redirect count exceeded"On GitHub#100398
  2. Proxy rewrite drops an empty _rsc hash, so a Server Action's redirect fetch redirects to itself until "Too many redirects"On GitHub#100141

Do you work on Next.js?

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