blockchain-application-using-fabric-java-sdk icon indicating copy to clipboard operation
blockchain-application-using-fabric-java-sdk copied to clipboard

Losing actual error message sent by chaincode.

Open shitalninawe opened this issue 5 years ago • 0 comments

I am using fabric-gateway-java as dependency in my project which internally uses fabric-sdk-java. In fabric-java-sdk we are losing actual error message that is sent by chaincode. Instead of actual error message we always get error like "org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: Could not meet endorsement policy for chaincode <chaincodeName>"

You can see it in Channel.java line number 4561 and 4698. How can I get the original error message sent by chaincode?

shitalninawe avatar Feb 18 '20 04:02 shitalninawe