我试图运行fabric-samples/asset-transfer-basic/application-javascript/app.js
文件但是发现错误。
在我输入命令"node app.js">
后显示发现错误删除
- user.id
- appUser.id
标识来自您的/home/pritam/fabric-samples/asset-transfer-basic/application-javascript/wallet
目录。
发生的错误已经记录在asset-transfer-basic
目录下的app.js
文件中:
// 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.