Hi Shubham,

If you are talking about using this 4-node setup, please double check the connection.json (not included in my setup). I have just copied the one from basic-network/connection.json, and change localhost to my Node 1 IP. Also notice the ca.org1.example.com instead of ca.example.com, and orderer to orderer0.

{
"name": "testnetwork",
"version": "1.0.0",
"client": {
"organization": "Org1",
"connection": {
"timeout": {
"peer": {
"endorser": "300"
},
"orderer": "300"
}
}
},
"channels": {
"mychannel": {
"orderers": [
"orderer0.example.com"
],
"peers": {
"peer0.org1.example.com": {}
}
}
},
"organizations": {
"Org1": {
"mspid": "Org1MSP",
"peers": [
"peer0.org1.example.com"
],
"certificateAuthorities": [
"ca.org1.example.com"
]
}
},
"orderers": {
"orderer0.example.com": {
"url": "grpc://34.207.135.241:7050"
}
},
"peers": {
"peer0.org1.example.com": {
"url": "grpc://34.207.135.241:7051"
}
},
"certificateAuthorities": {
"ca.org1.example.com": {
"url": "http://34.207.135.241:7054",
"caName": "ca.org1.example.com"
}
}
}

Then in my fabcar client (fabcar/javascript/), I change the enrollAdmin.js to reflect the ccpPath and caURL. I can successfully enrol an administration using my ca.org1.example.com. After that I also register user1 using registerUser.js and perform the query chaincode.

Please double check the connection.json, update the client code to reflect the change of directory, and try again if it works.

cheers, kc

Written by

Happy to share what I learn on blockchain. Visit http://www.ledgertech.biz/kcarticles.html for my works. or reach me on https://www.linkedin.com/in/ktam1/.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store