【问题标题】:PoolLedgerTimeout in Hyperledger IndyHyperledger Indy 中的 PoolLedgerTimeout
【发布时间】:2020-03-12 11:53:38
【问题描述】:

问题:

我已经克隆了 Hyperledger-Indy SDK 存储库,然后我尝试运行 nodeJs 示例首先我发出命令 npm run ledger: start 然后我发出 npm install 然后在 nodejs 文件夹中发出 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.

终端出现此错误。有人可以帮我解决这个问题吗?我尝试了很多以找到解决此问题的方法,但我无法找到解决此问题的方法。谢谢。

【问题讨论】:

  • 能否请您分享您的开发环境的详细信息,例如操作系统类型、操作系统版本、NodeJs 版本、nvm 版本等。

标签: node.js hyperledger hyperledger-indy


【解决方案1】:

问题是因为你没有启动 hiperledger Indy 的 pool ledger。 我可以复制这个问题。

https://imgur.com/a/AK0WlV9

我已经安装了包含窗台的 docker,所以我使用 docker 来运行池分类帐,使用命令:

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

如果您没有安装 docker 并且运行过 ledger,我向您推荐这个链接,只需几个步骤:https://medium.com/akeo-tech/step-by-step-guide-to-set-up-hyperledger-indy-64eeb524f558

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-20
    • 1970-01-01
    • 2021-02-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多