ipfs / js-ipfs-utils

IPFS utils
Other
23 stars 30 forks source link

TypeError: RequestInit: duplex option is required when sending a body. #249

Closed aurel282 closed 1 year ago

aurel282 commented 1 year ago

Updating to node v18.14.0 NPM: 9.4.2

I have this error when pushing files to IPFS

error - TypeError: RequestInit: duplex option is required when sending a body.

at Object.fetch (node:internal/deps/undici/undici:14152:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Client.fetch (/node_modules/ipfs-utils/src/http.js:132:22) at async Object.addAll (/node_modules/ipfs-http-client/src/add-all.js:36:17) at async handler (webpack-internal:///(api)/./src/pages/api/sendToIPFS.ts:35:22)

welcome[bot] commented 1 year ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

aurel282 commented 1 year ago

It was already solved in V 9.0.14