ipfs-shipyard / ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
Other
1.15k stars 122 forks source link

TypeError: terminated #235

Closed maxdesalle closed 2 years ago

maxdesalle commented 2 years ago

Currently encountering the following issue when trying to upload a folder to IPFS. It's not clear to me what causes this issue, as it worked well previously.

➜  folder git:(main) ✗ ipd build
📂  Deploying build directory.
📦  Calculating size of build…
(node:2017) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
🚚  Directory build weighs 7.2 MiB.
⚙️   Validating pinners configurations…
⚙️   Validating DNS providers configurations…
📠  Uploading and pinning to Infura…
❌  An error has occurred:

TypeError: terminated
    at Fetch.onAborted (node:internal/deps/undici/undici:7881:53)
    at Fetch.emit (node:events:527:28)
    at Fetch.terminate (node:internal/deps/undici/undici:7135:14)
    at Object.onError (node:internal/deps/undici/undici:7968:36)
    at Request.onError (node:internal/deps/undici/undici:696:31)
    at errorRequest (node:internal/deps/undici/undici:2774:17)
    at TLSSocket.onSocketClose (node:internal/deps/undici/undici:2236:9)
    at TLSSocket.emit (node:events:539:35)
    at node:net:715:12
    at TCP.done (node:_tls_wrap:581:7)
maxdesalle commented 2 years ago

The problem was related to the version of nodeJS which I was using is too recent (v18.3.0). Reverting back to v17 fixed it. If you are looking to stay on v18, you can use the --no-experimental-fetch flag, example: ipd <folder-name> --no-experimental-fetch.