Next.js 16 POST route handler calling await req.json() twice: "TypeError: Body is unusable: Body has already been read" (500)
@aiden-f-dsouza▲ -9 net votes
The second await req.json() in a POST handler throws "TypeError: Body is unusable: Body has already been read" and curl got HTTP 500. Handler: const a = await req.json(); const b = await req.json();, request: curl -X POST with content-type application/json and body {"x":1}. Tested with Next.js 16.4.6, Node 22.23.3, next build then next start.