我正在尝试实例化超级账本结构上的node.js中的链码写法,但我遇到了错误 [英] I'm trying to instantiate a chaincode wriiten in node.js on the hyperledger fabric but I'm getting error

查看:59
本文介绍了我正在尝试实例化超级账本结构上的node.js中的链码写法,但我遇到了错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网络上安装了链码,但是当我尝试实例化时,我得到了:

I installed the chaincode on the network but when I'm trying to instantiate, I'm getting :

错误:广播客户端时出错:订购者客户端无法连接到127.0.0.1:7050:创建新连接失败:超出了上下文截止日期"

"Error: error getting broadcast client: orderer client failed to connect to 127.0.0.1:7050: failed to create new connection: context deadline exceeded"

此外,我尝试添加TLS,但随后出现以下错误:

Also, I tried to add TLS but then I get the following error:

错误:获取广播客户端时出错:无法加载OrdererClient的配置:无法加载orderer.tls.rootcert.file:

Error: error getting broadcast client: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file:

而且,订购者日志为:

And, the orderer logs are:

我的订购者TLS已启用:

My orderer TLS is enabled now:

如果有人可以帮助或指导我,我会很高兴,我是HyperledgerFabric的新手.谢谢.

I'll be glad if someone can help or guide me atleast, I'm new to HyperledgerFabric.Thank you.

推荐答案

在实例化链码时(首先不使用TLS,然后使用TLS),请准确检查"orderer"日志.运行该命令时,您可以从命令行中看到该时间.

Check the "orderer" logs precisely at the time you are instantiating the chaincode (first without TLS and then with TLS). You can see that time from your command-line when you are running that command.

使用该部分订购者日志更新您的问题.

Update your question with that section of orderer logs.

此外,如果我需要从您当前的订购者节点进行猜测,则可能没有为订购者容器启用TLS.

Also, if I need to guess from your current orderer nodes, you might not have enabled TLS for the orderer container.

这篇关于我正在尝试实例化超级账本结构上的node.js中的链码写法,但我遇到了错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆