Before you execute the
composer runtime install -c PeerAdmin@fabric-network -n tutorial-network
command, check the following:
1. Has the peer setup correctly?
2. Has the peer joined the channel?
3. Is fabric-ca running?
If all this is fine and you are still facing the problem then try this code:
{
"name": "fabric-network",
"type": "hlfv1",
"mspID": "Org1MSP", "peers": [ { "requestURL": "grpc://localhost:7051", "eventURL": "grpc://localhost:7053" } ],
"ca": { "url": "http://localhost:7054",
"name": "ca.org1.example.com" },
"orderers": [ { "url" : "grpc://localhost:7050" } ], "channel": "composerchannel", "timeout": 300
}
And then re-create the card like this:
composer card create -p connection.json -u PeerAdmin -c Admin@org1.example.com-cert.pem -k xxxxx_sk -r PeerAdmin -r ChannelAdmin