简体   繁体   English

我该如何解决这个错误? DiscoveryService:基本错误:为链码构造描述符失败:

[英]How can i fix this error? DiscoveryService: basic error: failed constructing descriptor for chaincodes:<name:"basic"

I'm at my final configuration step of my HF network.我正处于 HF 网络的最后配置步骤。 After I enroll an admin and an user, i have this error when i try to execute my class "invoke.js" (node invoke.js).注册管理员和用户后,当我尝试执行我的类“invoke.js”(节点invoke.js)时出现此错误。 The error is:错误是:

error: [DiscoveryService]: send[basic] - Channel:examplechannel received discovery error:failed constructing descriptor for chaincodes:<name:"basic" > Failed to submit transaction: Error: DiscoveryService: basic error: failed constructing descriptor for chaincodes:<name:"basic" >错误:[DiscoveryService]:send[basic] - 频道:examplechannel 收到发现错误:为链码构造描述符失败:<name:"basic" > 提交事务失败:错误:DiscoveryService:基本错误:为链码构造描述符失败:<名称:“基本”>

The chaincode's name is 'basic' and the name of the channel is 'examplechannel'.链码的名称是“basic”,通道的名称是“examplechannel”。

This error can come if wrong chaincode name is used with invoke.如果调用时使用了错误的链代码名称,则可能会出现此错误。 Make sure chaincode with name "basic" is deployed to the "examplechannel" before invoke.确保在调用之前将名为“basic”的链代码部署到“examplechannel”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过 Nodejs SDK 提交事务时面临问题“DiscoveryService:基本错误:构建链码描述符失败” - Facing issue “DiscoveryService: basic error: failed constructing descriptor for chaincodes” while submitting transaction through Nodejs SDK 链码构建描述符失败 - failed constructing descriptor for chaincodes 如何解决该发现服务不起作用:“为链码构造描述符失败:<name:”txcc“> ”</name:”txcc“> - How to resolve to that discovery Service does not work: “failed constructing descriptor for chaincodes :<name:”txcc“ >” Hyperledger Fabric 未能提交交易:错误:没有可用于 {“chaincodes”:[{“name”:“fabcar”}]} 的背书计划 - Hyperledger fabric Failed to submit transaction: Error: No endorsement plan available for {“chaincodes”:[{“name”:“fabcar”}]} 如何使用安装在同一个 Fabric 通道中的两个链码? - How can I use two chaincodes installed in the same Fabric channel? 如何解决“私钥存储失败?” Error01问题? - How can I fix “Failed Storing private key?” Error01 problem? 错误:获取链码字节时出错:列出包 ../asset-transfer-basic/chaincode-go/ 的 deps 失败:退出状态 2 - Error: error getting chaincode bytes: listing deps for package ../asset-transfer-basic/chaincode-go/ failed: exit status 2 如何在Hyperledger Fabric基本网络示例中查看完整的订购者日志? - How can I see the full orderer logs in Hyperledger Fabric basic-network sample? 运行 Hyperledger 结构基本网络时出现问题:验证 ReadSet 时出错 - Problem running Hyperledger fabric basic-network: error validating ReadSet 如何修复[ERROR] Helper - 无法获得注册用户:Jim有错误:TypeError:client.loadFromConfig不是函数 - How to fix the [ERROR] Helper - Failed to get registered user: Jim with error: TypeError: client.loadFromConfig is not a function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM