Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Macil opened this issue Jan 29, 2023 · 1 comment · May be fixed by #259
Open

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

Macil opened this issue Jan 29, 2023 · 1 comment · May be fixed by #259

Comments

@Macil
Copy link

Macil commented Jan 29, 2023

$ 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.

@Macil Macil linked a pull request Jan 29, 2023 that will close this issue
@Macil Macil changed the title Broken on Node 19: "TypeError: RequestInit: duplex option is required when sending a body" Broken in Node 18.13: "TypeError: RequestInit: duplex option is required when sending a body" Jan 29, 2023
@moskalyk
Copy link

moskalyk commented Mar 8, 2023

Fixing this issue would onboard many users to decentralised hosting from simple react or solidjs build files using a simple ipfs-deploy. Excited and looking to see when it gets tested and merged. Thanks in advanced for those that help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants