Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (4.1k points)

I'm following this tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

At the "node query.js" command I received the following error:
    

Create a client and set the wallet location
    Set wallet path, and associate user  PeerAdmin  with application
    Check user is enrolled, and set a query URL in the network
    Make query
    Assigning transaction_id:  f7d1d9b40c37bb21909bdb6ff24980da33758fb1ea5a85cb67d699f3fcd3ffa2
    error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown
        at /home/user/work/fabric-samples/fabcar/node_modules/grpc/src/node/src/client.js:434:17
    returned from query
    Query result count =  1
    error from query =  { [Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown] code: 2, metadata: Metadata { _internal_repr: {} } }
    Response is  Error: Failed to deserialize creator identity, err MSP Org1MSP is unknown

1 Answer

0 votes
by (14.4k points)

Having faced the same problem as you did, I came up with a solution: 

sudo apt-get --purge remove docker-ce

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-get update

apt-cache policy docker-ce

sudo apt-get install -y docker-ce

Note: This code will only work on docker v1.13+/17.03. 

Browse Categories

...