问题
Background: I modified the /examples/e2e_cli/
from Hyperledger-fabric and get this error message when running the end to end script.sh
Error: endorsement failure during query. response: status:500 message:"make sure the chaincode mycc has been successfully instantiated and try again: getccdata mychannel/mycc responded with error: could not find chaincode with name 'mycc'"
The chaincode is correctly instantiated. What could actually be causing this error?
回答1:
This Jira ticket documents the problem and one thing that causes it... which does not seem directly tied to instantiation.
One cause for this error message is that the ports in the configtx.yaml are wrong or missing.
Missing
Addresses:
- orderer0.od1.example.com
- orderer1.od1.example.com
Correct
Addresses:
- orderer0.od1.example.com:7050
- orderer1.od1.example.com:7050
来源:https://stackoverflow.com/questions/53554362/how-to-solve-error-endorsement-failure-during-query-response-status500-mess