I met the same error during the sample run that it was not possible to connect. I fixed it with the following steps:
- get device IP address using:
ifconfig - replace
localhosts with query.js with IP in # 1
Example:
@@ -12,7 +12,7 @@ var options = { user_id: 'PeerAdmin', channel_id: 'mychannel', chaincode_id: 'fabcar', - network_url: 'grpc://localhost:7051', + network_url: 'grpc://****:7051', };
source share