title: Error: could not send: EOF on instantiating chaincode
body: <p>I am getting </p>
  
  <blockquote>
    <p>Error: could not send: EOF</p>
  </blockquote>
  
  <p>on instantiating chaincode in HF. I followed the correct steps for installing binaries, images etc.</p>
  
  <p>After installation I used following command in the <strong>first-network</strong> directory to install and instantiate chaincode:</p>
  
  <pre><code>./byfn.sh generate
  ./byfn.sh up
  docker exec -it cli bash
  peer chaincode install -n fabcar -v 1.0 -p github.com/chaincode/fabcar/javascript -l node
  </code></pre>
  
  <p>On executing last command this is the output that I got:</p>
  
  <pre><code>2019-03-28 09:22:04.047 UTC [chaincodeCmd] checkChaincodeCmdParams -&gt; INFO 001 Using default escc
  2019-03-28 09:22:04.048 UTC [chaincodeCmd] checkChaincodeCmdParams -&gt; INFO 002 Using default vscc
  2019-03-28 09:22:04.950 UTC [chaincodeCmd] install -&gt; INFO 003 Installed remotely response:&lt;status:200 payload:"OK" &gt;
  </code></pre>
  
  <p>then I used the command to instantiate chaincode which is:</p>
  
  <pre><code>peer chaincode instantiate -n fabcar -v 1.0 -C mychannel -c '{"Args":[]}' -l node
  </code></pre>
  
  <p>And the output was an error like this:</p>
  
  <pre><code>2019-03-28 09:23:25.743 UTC [chaincodeCmd] InitCmdFactory -&gt; INFO 001 Retrieved channel (mychannel) orderer endpoint: orderer.example.com:7050
  2019-03-28 09:23:25.747 UTC [chaincodeCmd] checkChaincodeCmdParams -&gt; INFO 002 Using default escc
  2019-03-28 09:23:25.747 UTC [chaincodeCmd] checkChaincodeCmdParams -&gt; INFO 003 Using default vscc
  Error: could not send: EOF
  </code></pre>
  
  <p>I think I missed something but I am not sure.
  Can anyone tell where I went wrong. Thanks in advance.</p>