Hyperledger Indy中的PoolLedgerTimeout

问题描述 投票:0回答:1

问题:

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

> [email protected] 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.

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

node.js hyperledger hyperledger-indy
1个回答
0
投票
该问题是由于您没有启动嘻哈者Indy的池分类帐而引起的。我可以重复这个问题。

https://imgur.com/a/AK0WlV9

我已经安装了包含壁架的泊坞窗,所以我使用泊坞窗通过以下命令运行池分类帐:

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
© www.soinside.com 2019 - 2024. All rights reserved.