Hyperledger Febric 错误:通道:mychannel 收到发现错误:访问被拒绝

时间:2021-01-21 15:09:43

标签: hyperledger-fabric

我试图运行 fabric-samples/asset-transfer-basic/application-javascript/app.js 文件 但发现错误。

It is showing discovery error after I gave command "node app.js"

1 个答案:

答案 0 :(得分:0)

删除

  • user.id
  • appUser.id

来自 /home/pritam/fabric-samples/asset-transfer-basic/application-javascript/wallet 目录的身份。

发生的错误已记录在 app.js 目录下的 asset-transfer-basic 文件中:

// NOTE: If you see  kind an error like these:
/*
    2020-08-07T20:23:17.590Z - error: [DiscoveryService]: send[mychannel] - Channel:mychannel received discovery error:access denied
    ******** FAILED to run the application: Error: DiscoveryService: mychannel error: access denied

   OR

   Failed to register user : Error: fabric-ca request register failed with errors [[ { code: 20, message: 'Authentication failure' } ]]
   ******** FAILED to run the application: Error: Identity not found in wallet: appUser
*/
// Delete the /fabric-samples/asset-transfer-basic/application-javascript/wallet directory
// and retry this application.
//
// The certificate authority must have been restarted and the saved certificates for the
// admin and application user are not valid. Deleting the wallet store will force these to be reset
// with the new certificate authority.