Skip to content

Broken in Node 18.13: "TypeError: RequestInit: duplex option is required when sending a body" #258

@Macil

Description

@Macil
$ ipfs-deploy public -p infura -d cloudflare
📂  Deploying public directory.
📦  Calculating size of public…
🚚  Directory public weighs 14.2 MiB.
⚙️   Validating pinners configurations…
⚙️   Validating DNS providers configurations…
📠  Uploading and pinning to Infura…
❌  An error has occurred:

TypeError: RequestInit: duplex option is required when sending a body.
    at Object.fetch (node:internal/deps/undici/undici:14062:11)

This error happens when using Node 18.13.0+ or Node 19.1.0+ while pinning to any pin service that is implemented with the ipfs-http-client library (Infura, c4rex, dappnode).

The root cause is ipfs/js-ipfs#4276 and nodejs/node#46221. The issue is fixed in ipfs-http-client v60.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions