How to solve “Error: endorsement failure during query. response: status:500 message”?

时间秒杀一切 提交于 2021-02-08 09:22:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!