hyperledger结构:无法调用链码

时间:2019-04-19 06:58:06

标签: hyperledger-fabric hyperledger

我已经创建了频道,将对等节点加入了更新的锚点对等节点,并在命令行中实例化了链码。然后,我想在余额转移示例之后,通过创建的frontend和rest api调用chaincode。但是,它在我调用时显示此错误:

[2019-04-19T14:38:05.942] [ERROR] invoke-chaincode - invoke chaincode proposal: Error : Error: 2 UNKNOWN: access denied: channel [sntschannel] creator org [BankMSP]
[2019-04-19T14:38:05.942] [ERROR] invoke-chaincode - invoke chaincode proposal: Error : Error: 2 UNKNOWN: access denied: channel [sntschannel] creator org [BankMSP]
[2019-04-19T14:38:05.943] [ERROR] invoke-chaincode - Failed to invoke chaincode. cause:invoke chaincode proposal: Error : Error: 2 UNKNOWN: access denied: channel [sntschannel] creator org [BankMSP]

在对等方的日志中说

2019-04-19 06:30:28.563 UTC [protoutils] ValidateProposalMessage -> WARN 15d channel [sntschannel]: creator certificate is not valid: could not validate identity's OUs: the identity must be a client, a peer or an orderer identity to be valid, not a combination of them. OUs: [[0xc003b4b770 0xc003b4b7a0 0xc003b4b7d0]], MSP: [BankMSP]
2019-04-19 06:30:28.563 UTC [comm.grpc.server] 1 -> INFO 15e unary call completed {"grpc.start_time": "2019-04-19T06:30:28.56Z", "grpc.service": "protos.Endorser", "grpc.method": "ProcessProposal", "grpc.peer_address": "xxx.xx.x.x:xxxxx", "error": "access denied: channel [sntschannel] creator org [BankMSP]", "grpc.code": "Unknown", "grpc.call_duration": "3.653274ms"}

有人可以帮助我吗?谢谢!

0 个答案:

没有答案