hyperledger-archives / indy-sdk

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

Running demo reports an error: CommonInvalidState #2587

Closed zhb001 closed 9 months ago

zhb001 commented 1 year ago

Demo link

使用此demo报错如下:

` oot@VM-0-11-ubuntu:/www/wwwroot/indy-sdk/samples/nodejs/src# node negotiateProof.js Set protocol version 2 to work with Indy Node 1.4

  1. Open pool ledger and get handle from libindy
  2. Creates Issuer wallet and opens it to get handle.
  3. Creates Prover wallet and opens it to get handle.
  4. Issuer creates credential definition for schema
  5. Prover creates Link Secret
  6. Issuer create Cred Offer
  7. Prover creates and stores Cred Request
  8. Issuer creates Credential for received Cred Request
  9. Prover processes and stores received Credential (node:11875) UnhandledPromiseRejectionWarning: IndyError: CommonInvalidState at Object.callback (/www/wwwroot/indy-sdk/samples/nodejs/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10) (node:11875) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:11875) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. root@VM-0-11-ubuntu:/www/wwwroot/indy-sdk/samples/nodejs/src# `
zhb001 commented 1 year ago

It uses the von test network, and the license link is a LAN link. Is the demo caused by 127.0.0.1? How can I change it?