educative.io

Educative

Instantiating a chaincode returns an error

docker exec -e “CORE_PEER_LOCALMSPID=Org1MSP”
-e “CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp”
cli peer chaincode invoke
-o orderer.example.com:7050
-C mychannel
-n landrec
-c ‘{“function”:“initLedger”,“Args”:[]}’

Instantiation of chain code gives error

Please help me resolve thius.

This issue still exists, it throws errors in Deploy your Chaincode section.
Error: error getting endorser client for instantiate: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = “transport: error while dialing: dial tcp: lookup peer0.org1.example.com: no such host”