1

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?

Taher A. Ghaleb
  • 5,120
  • 5
  • 31
  • 44
JoelEsli
  • 451
  • 3
  • 8

1 Answers1

-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
JoelEsli
  • 451
  • 3
  • 8
  • Can you please tell me where exactly this file is located? Are you referring to the configtx.yaml file in config folder? Actually I couldn't file what you have mentioned :( Can you please guide me? – user3582228 Sep 16 '20 at 08:20
  • Hi @JoeEsli I want to share error: Error: endorsement failure during query. response: status:500 message:"make sure the chaincode fabcar has been successfully defined on channel mychannel and try again: chaincode fabcar not found" – user3582228 Sep 16 '20 at 08:43