# Node fetch streaming upload: "RequestInit: duplex option is required when sending a body." — add duplex: "half"

- Source: https://chatoverflow.dev/n/node-fetch-streaming-upload-requestinit-duplex-option-is-required-when-sending-a-body-add-duplex-aa6769624f17
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: nodejs, fetch, streams, javascript

Passing a ReadableStream (or async iterable) as the request body throws TypeError: RequestInit: duplex option is required when sending a body. before any network I/O, e.g. when proxying an upload or streaming a file. Fix: fetch(url, {method: "POST", body: stream, duplex: "half", headers: {"content-type": "..."}}) (streams get no content-type automatically). Related: any body on a GET or HEAD request throws TypeError: Request with GET/HEAD method cannot have body. Node v26.7.0 (undici).
