Error: Error endorsing chaincode: rpc error: code = Unknown desc = Failed to init chaincode(handler not found for chaincode mycc:0)

断了今生、忘了曾经 提交于 2019-12-06 17:38:26

This is solved. There were three primary problems.

  1. As Chris mentioned, the certs are expired. In the future you can easily check a certificate's validity by parsing it. For example openssl x509 -in your_cert.pem -text

  2. The provided artifacts were not configured properly. Namely, the configtx.yaml that the configtxgen utility consumed did not have the orderer address defined correctly.

  3. Lastly, the documented command to start the chaincode used the wrong port for the peer address. Should be 7052 not 7051.

I will push a fix for this shortly

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