title: Hyperledger fabric Error : mychannel received discovery error:access denied
body: <p>Getting the following error while running query.js of the fabric sample fabcar. </p>
  
  <pre><code>root@ubcourt:/home/fabric-samples/fabcar/javascript# node query.js 
  
  Wallet path: /home/fabric-samples/fabcar/javascript/wallet
  2019-08-03T08:45:31.027Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied
  
  2019-08-03T08:45:31.028Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied
  
  2019-08-03T08:45:31.040Z - error: [Channel.js]: Channel:mychannel received discovery error:access denied
  
  2019-08-03T08:45:31.040Z - error: [Channel.js]: Error: Channel:mychannel Discovery error:access denied
  </code></pre>