Unknown MSP DEFAULT error query chaincode

0 votes

I tried deploying the following example :

http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

It shows me an error when I try running the following command:

peer query -C mychannel -n mycc -c {"Args":["query","a"]} 

The error is stated as:

"failed to deserialize identity, err MSP DEFAULT is unknown".

The query is copied from script.sh, which is called by

./byfn.sh -m up

But it doesn't run directly. Can someone help?

Jun 8, 2018 in Blockchain by Perry
• 17,020 points

retagged Nov 22, 2018 by Omkar 37 views

1 answer to this question.

0 votes
./byfn.sh -m up

After running the above command, Connect to the cli docker image initialized and running by invoking

docker exec -it cli /bin/bash
For peer cli to be able run correctly there is a set of environmental variable you have to provide. Basically you need to point to the endorsing peer and to the MSP configuration, setting the MSP ID as well. If you haven't configured those values, there would be an error.
answered Jun 8, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

0 votes
1 answer
+16 votes
4 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

What happened on deploy, invoke and query in Hyperledger chaincode?

1. Deploy: During Deploy the chaincode is written onto ...READ MORE

answered Apr 26, 2018 in Blockchain by Christine
• 15,790 points
333 views
+1 vote
1 answer

Error while deploying chaincode in IBM Blockchain. Please help.

Try stripping out the 'tree/master' portion of ...READ MORE

answered Apr 26, 2018 in Blockchain by Christine
• 15,790 points
88 views