PoolLedgerTimeout in Hyperledger Indy



问题:

我已经克隆了Hyperledger Indy SDK存储库,然后我尝试运行nodeJs示例。首先我在nodeJs文件夹中发出命令npm run ledger: start,然后我发出npm install,然后npm run start。之后我得到了

> samples@1.0.0 start /home/tharindu/indy-sdk/samples/nodejs
> node src/main.js
gettingStarted.js -> started
Open Pool Ledger: pool1
done
(node:4013) UnhandledPromiseRejectionWarning: IndyError: PoolLedgerTimeout
at Object.callback (/home/tharindu/indy-sdk/samples/nodejs/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10)
(node:4013) 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:4013) [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.

终端上出现此错误。有人能帮我解决这个问题吗?。我试了很多办法想找到这个问题的解决办法,但都找不到。非常感谢。

问题是因为您没有启动hiperledger Indy的池分类账。我可以重复这个问题。

https://imgur.com/a/AK0WlV9

我已经安装了包含ledge的docker,所以我使用docker运行池账本,使用命令:

sudo docker run -itd -p 9701-9708:9701-9708 indy_pool

如果你还没有安装docker并运行了账本,我建议你这个链接,只需几个步骤:https://medium.com/akeo-tech/step-by-step-guide-to-set-up-hyperledger-indy-64eeb524f558

相关内容

  • 没有找到相关文章

最新更新