chainHero / heroes-service

Short tutorial to build a blockchain application in Go with Hyperledger Fabric
https://chainhero.io/2018/06/tutorial-build-blockchain-app-v1-1-0/
Apache License 2.0
275 stars 147 forks source link

Hello i get an error when using docker-compose up and then run the file created #45

Open michaelxioup opened 3 years ago

michaelxioup commented 3 years ago

$ docker-compose up -d && cd .. && ./blockchain.exe Creating network "fabsdkgo_default" with the default driver Creating ca.org1.hf.chainhero.io ... Creating orderer.hf.chainhero.io ... Creating ca.org1.hf.chainhero.io ... done Creating orderer.hf.chainhero.io ... done Creating peer0.org1.hf.chainhero.io ... Creating peer1.org1.hf.chainhero.io ... Creating peer1.org1.hf.chainhero.io ... done Creating peer0.org1.hf.chainhero.io ... done SDK created Ressource management client created Channel created Unable to initialize the Fabric SDK: failed to make admin join channel: join channel failed: Multiple errors occurred: - SendProposal failed: Transaction processing for endorser [localhost:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7051]: connection is in TRANSIENT_FAILURE - SendProposal failed: Transaction processing for endorser [localhost:8051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:8051]: connection is in TRANSIENT_FAILURE

i checked the compose and ports they all work fine i am using windows 10 btw docker newest version and go version newest should i use the recommended go version ?

i also get because it's saying they are broken imports
could not import github.com/hyperledger/fabric/core/chaincode/shim (no required module provides package "github.com/hyperledger/fabric/core/chaincode/shim") could not import github.com/hyperledger/fabric/protos/peer (no required module provides package "github.com/hyperledger/fabric/protos/peer")