且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Hyperledger fabcar示例结构显示连接失败错误

更新时间:2022-10-15 08:22:14

安吉拉的答案的补充:

对于遇到此问题并使用Docker Toolbox的任何人,请执行 docker-machine ls 并将IP地址复制到您的ACTIVE机器的URL列,并将IP地址粘贴到每个 localhost query.js invoke.js 文件中.

I am trying to install hyperledger and run chain code. I followed all the steps as directed here. But getting error

error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed

while running the query.js. I have following active docker running Before running the node query.js, when i am running npm install its giving following warning : npm WARN fabcar@1.0.0 No repository field. Is this the problem. Can any one please help me out about where it is going wrong.

Addition to Angela's answer:

To anyone having this issue and using Docker Toolbox, do docker-machine ls and copy the IP adress at the URL column of your ACTIVE machine and paste the IP adress to every localhost in both query.js and invoke.js files.