Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for cha
#1
Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for chaincode)

How I fix this error? I want start business network
Reply
#2
Check your package.json file. This error is generally from mismatched parameters. Make sure when executing the network start command, example:
Code:
composer network start -c PeerAdmin@hlfv1 -n perishables-network -V 0.0.1 -A admin -S adminpw
that the network name and version match exactly.

For example, your package.json file looks like this:
Code:
{"name":"perishable-network","author":"author","description":"Buy/Sell fractional pieces of land.","version":"0.0.3-deploy.130","

Then the network start command would be this:
Code:
composer network start -c PeerAdmin@hlfv1 -n perishable-network -V 0.0.3-deploy.130 -A admin -S adminpw
Reply