Error: [client-utils.js]: sendPeersProposal - promise rejected: error: failed to deserialize creator id

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

In the command " node query.js

" I got 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

+3


source to share


3 answers


Just ran into the same problem as you.

My decision:



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

      

Will only work on docker v1.13 + / 17.03. Found from source1 and source2 .

+1


source


I think this is a docker issue. When I had the same problem, I fixed it by updating docker with the following commands:



sudo apt-get --purge remove docker-ce
sudo apt-get remove docker
sudo apt-get remove  docker-ce

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

sudo apt-get install docker-ce
docker -v
sudo curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
docker-compose -v

sudo reboot
      

Run codeHide result


Once the docker is up to date, try again and see if the issue is fixed.

0


source


There seems to be a problem with your Docker version. There is a bug report on Hyperledger Fabric 1.0.0 that was fixed in 1.0.1 that is similar to the situation you described.

The recommended solution is to upgrade your Docker version to 17.03.0-ce or later and upgrade your Hyperledger Fabric version to 1.0.1 or later .

0


source







All Articles