ipfs-shipyard / ipfs-shipyard/ipfs-deploy
Broken in Node 18.13: "TypeError: RequestInit: duplex option is required when sending a body"
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
```
$ 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 https://github.com/ipfs/js-ipfs/issues/4276 and https://github.com/nodejs/node/issues/46221. The issue is fixed in ipfs-http-client v60.0.0.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.