Fetch request and response bodies are streams that are normally read once. Reusing a body-bearing Request or reading a Response twice fails after the stream has been consumed or locked.
The same Response is passed to both json() and text(), or read by multiple consumers.
A Request containing a body is reused for a second fetch call.
Logging or middleware consumes the body before application code reads it.
How to fix it
Trace every consumer of the Request or Response, including logging and interceptors. Inspect bodyUsed to confirm whether a prior read occurred.
Read the body once and pass the parsed result to downstream code instead of passing the Response to several readers.
If two independent consumers are genuinely needed, call clone() before the first read or send, then give each consumer its own branch. Cloning an already consumed stream is too late.
For retries, recreate the request from reusable data or prepare a clone before sending. Separately check whether replaying the operation is safe, especially for non-idempotent writes.
Avoid cloning large streaming bodies casually: unread branches can buffer data and increase memory use.