Error in laconic2d when trying to create a bond #59

Closed
opened 2024-03-27 21:11:22 +00:00 by zramsay · 2 comments
Member
  • installed laconic locally
  • running laconic2d as a stack

config.yml looks like:

services:
  registry:
    restEndpoint: 'http://127.0.0.1:1317'
    gqlEndpoint: 'http://127.0.0.1:9473/api'
    userKey: d2d5598231780db4996436ef6732fe0896cac996b59b4d8a95e02da7575ee0e8
    bondId:
    chainId: laconic_9000-1
    gas: 350000
    fees: 200000aphoton

running

laconic -c config.yml registry status

works as expected

running

laconic -c config.yml registry bond create --type photon --quantity 1000000000

gives this error:

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11731:11)
    at async HttpClient.execute (/root/.nvm/versions/node/v18.19.1/lib/node_modules/@cerc-io/laconic-registry-cli/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/httpclient.js:24:63)
    at async Comet38Client.detectVersion (/root/.nvm/versions/node/v18.19.1/lib/node_modules/@cerc-io/laconic-registry-cli/node_modules/@cosmjs/tendermint-rpc/build/comet38/comet38client.js:61:26)
    at async Comet38Client.connect (/root/.nvm/versions/node/v18.19.1/lib/node_modules/@cerc-io/laconic-registry-cli/node_modules/@cosmjs/tendermint-rpc/build/comet38/comet38client.js:50:26) {
  cause: SocketError: other side closed
      at Socket.onSocketEnd (node:internal/deps/undici/undici:8280:26)
      at Socket.emit (node:events:529:35)
      at endReadableNT (node:internal/streams/readable:1400:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    code: 'UND_ERR_SOCKET',
    socket: {
      localAddress: '127.0.0.1',
      localPort: 42932,
      remoteAddress: undefined,
      remotePort: undefined,
      remoteFamily: undefined,
      timeout: undefined,
      bytesWritten: 287,
      bytesRead: 0
    }
  }
}
- installed `laconic` locally - running laconic2d as a stack config.yml looks like: ``` services: registry: restEndpoint: 'http://127.0.0.1:1317' gqlEndpoint: 'http://127.0.0.1:9473/api' userKey: d2d5598231780db4996436ef6732fe0896cac996b59b4d8a95e02da7575ee0e8 bondId: chainId: laconic_9000-1 gas: 350000 fees: 200000aphoton ``` running ``` laconic -c config.yml registry status ``` works as expected running ``` laconic -c config.yml registry bond create --type photon --quantity 1000000000 ``` gives this error: ``` TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11731:11) at async HttpClient.execute (/root/.nvm/versions/node/v18.19.1/lib/node_modules/@cerc-io/laconic-registry-cli/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/httpclient.js:24:63) at async Comet38Client.detectVersion (/root/.nvm/versions/node/v18.19.1/lib/node_modules/@cerc-io/laconic-registry-cli/node_modules/@cosmjs/tendermint-rpc/build/comet38/comet38client.js:61:26) at async Comet38Client.connect (/root/.nvm/versions/node/v18.19.1/lib/node_modules/@cerc-io/laconic-registry-cli/node_modules/@cosmjs/tendermint-rpc/build/comet38/comet38client.js:50:26) { cause: SocketError: other side closed at Socket.onSocketEnd (node:internal/deps/undici/undici:8280:26) at Socket.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'UND_ERR_SOCKET', socket: { localAddress: '127.0.0.1', localPort: 42932, remoteAddress: undefined, remotePort: undefined, remoteFamily: undefined, timeout: undefined, bytesWritten: 287, bytesRead: 0 } } } ```
Member

For working with laconic2d, the restEndpoint in config has now changed to http://localhost:26657
Example config can be seen in https://git.vdb.to/cerc-io/laconic-registry-cli/src/branch/laconic2/config.example.yml
Branch laconic2 should be used for testing with laconic2d

For working with laconic2d, the `restEndpoint` in config has now changed to `http://localhost:26657` Example config can be seen in https://git.vdb.to/cerc-io/laconic-registry-cli/src/branch/laconic2/config.example.yml Branch [laconic2](https://git.vdb.to/cerc-io/laconic-registry-cli/src/branch/laconic2) should be used for testing with laconic2d
Author
Member

works, thanks

works, thanks
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconic-registry-cli#59
No description provided.