Unknown MSP DEFAULT error query chaincode

0 votes

I tried deploying the following example :

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,100 points

retagged Nov 22, 2018 by Omkar 807 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

Hyperledger : Deploying chaincode successful. But, cannot query - says ResourceNotFound

The problem(from logging) is dial unix /var/run/docker.sock: connect: ...READ MORE

answered Jun 21, 2018 in Blockchain by charlie_brown
• 7,720 points
1,002 views
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+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
1,500 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
897 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP