gpt4 book ai didi

hyperledger-fabric - Hyperledger 结构错误 : mychannel received discovery error:access denied

转载 作者:行者123 更新时间:2023-12-04 07:56:14 26 4
gpt4 key购买 nike

运行结构示例 fabcar 的 query.js 时出现以下错误。

root@ubcourt:/home/fabric-samples/fabcar/javascript# node query.js 

Wallet path: /home/fabric-samples/fabcar/javascript/wallet
2019-08-03T08:45:31.027Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied

2019-08-03T08:45:31.028Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied

2019-08-03T08:45:31.040Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied

2019-08-03T08:45:31.040Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied

最佳答案

  • 首先,删除钱包目录内的文件:
    sudo rm -r *  // inside wallet directory
  • node enrollAdmin.js && node registerUser.js
  • node query.js  // you will get output 
  • 关于hyperledger-fabric - Hyperledger 结构错误 : mychannel received discovery error:access denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57354414/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com