Skip to content

Error ECONNREFUSED when using offckb independently #206

@tea2x

Description

@tea2x

Hi everyone, thank you for your excellent project. Spinning up a CKB node is so easy with offckb.

After offckb node I tried running offckb deploy and offckb transfer independently. They both produces theECONNREFUSED error. For example:

$ offckb deploy --target ./build/sphincsplus_lock --config offckb.config.ts
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 TransportHttp.request (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/client/transports/http.js:12:28)
    at async ClientPublicTestnet.send (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/client/jsonRpc/index.js:254:22)
    at async ClientPublicTestnet.findCellsPagedNoCache (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/client/jsonRpc/index.js:225:34)
    at async ClientPublicTestnet.findCellsPaged (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/client/client.js:91:21)
    at async ClientPublicTestnet.findCellsOnChain (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/client/client.js:98:43)
    at async ClientPublicTestnet.findCells (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/client/client.js:121:26)
    at async SignerCkbPrivateKey.getAddressObjs (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/signer/ckb/signerCkbPublicKey.js:48:26)
    at async SignerCkbPrivateKey.findCells (/Users/tung/.nvm/versions/node/v18.19.1/lib/node_modules/@offckb/cli/node_modules/@ckb-ccc/core/dist.commonjs/signer/signer/index.js:138:25) {
  cause: Error: connect ECONNREFUSED ::1:8114
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
    errno: -61,
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '::1',
    port: 8114
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions