ZenVoich / mops

Package manager for the Motoko programming language
https://mops.one
MIT License
35 stars 3 forks source link

`mops i` network failure #211

Open vporton opened 4 months ago

vporton commented 4 months ago

MOPS stopped to work:

$ mops i
node:internal/deps/undici/undici:11731
    Error.captureStackTrace(err, this);
          ^

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11731:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async HttpAgent._requestAndRetry (/home/porton/.nvm/versions/node/v21.5.0/lib/node_modules/ic-mops/node_modules/@dfinity/agent/lib/cjs/agent/http/index.js:265:26)
    at async HttpAgent.query (/home/porton/.nvm/versions/node/v21.5.0/lib/node_modules/ic-mops/node_modules/@dfinity/agent/lib/cjs/agent/http/index.js:312:26)
    at async caller (/home/porton/.nvm/versions/node/v21.5.0/lib/node_modules/ic-mops/node_modules/@dfinity/agent/lib/cjs/actor.js:181:28)
    at async checkApiCompatibility (file:///home/porton/.nvm/versions/node/v21.5.0/lib/node_modules/ic-mops/dist/mops.js:224:25)
    at async Command.<anonymous> (file:///home/porton/.nvm/versions/node/v21.5.0/lib/node_modules/ic-mops/dist/cli.js:83:22) {
  cause: ConnectTimeoutError: Connect Timeout Error
      at onConnectTimeout (node:internal/deps/undici/undici:6869:28)
      at node:internal/deps/undici/undici:6825:50
      at Immediate._onImmediate (node:internal/deps/undici/undici:6857:13)
      at process.processImmediate (node:internal/timers:476:21) {
    code: 'UND_ERR_CONNECT_TIMEOUT'
  }
}

Node.js v18.19.1
vporton commented 4 months ago

The bug appears with Node v18.19.1 but not with Node v21.5.0.