java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: access denied: channel [] creator org [Org1MSP]
java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: access denied: channel [] creator org [Org1MSP]
at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:4140) [fabric-sdk-java-1.4.0.jar:na]
at org.hyperledger.fabric.sdk.Channel.queryInstalledChaincodes(Channel.java:3372) [fabric-sdk-java-1.4.0.jar:na]
at org.hyperledger.fabric.sdk.HFClient.queryInstalledChaincodes(HFClient.java:602) [fabric-sdk-java-1.4.0.jar:na]
这是因为peer是org2的, 但是设置用户身份的时候, 设置的确实Org1MSP , 遇到这种报错 , 就检查节点跟MSP是否一致, 证书使用是否正确。