hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
668 stars 736 forks source link

[error] IndyError: CommonInvalidState in Macos #2502

Closed tranducduong1994 closed 9 months ago

tranducduong1994 commented 2 years ago

ENV:

I trying to run docs/how-tos/write-did-and-query-verkey/nodejs But I'm getting this error:

Set protocol version 2 to work with Indy Node 1.4
1. Creates a new local pool ledger configuration that is used later when connecting to ledger.
2. Open pool ledger and get handle from libindy
/Users/tranducduong/Documents/Blockchain/indy-sdk/docs/how-tos/write-did-and-query-verkey/nodejs/node_modules/indy-sdk/src/wrapIndyCallback.js:15
      cb(new IndyError(err))
         ^

IndyError: CommonInvalidState
    at Object.callback (/Users/tranducduong/Documents/Blockchain/indy-sdk/docs/how-tos/write-did-and-query-verkey/nodejs/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10) {
  indyCode: 112,
  indyName: 'CommonInvalidState',
  indyCurrentErrorJson: null
}
error Command failed with exit code 1.

Thank you for your help.

tranducduong1994 commented 2 years ago

hello, is there somebody can help me?

zerjioang commented 2 years ago

@tranducduong1994 you might have wrong genesis definition in the file. Can you share your configuration details?