Hyperledger byfn could not assemble transaction ProposalResponsePayloads do not match

0 votes

I am trying to run Build your first network. But when I try to run the following command:

peer chaincode invoke -o orderer.example.com:7050 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses peer0.org2.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"Args":["invoke","a","b","10"]}'

I get the following error:

Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response:<status:200 > payload:"\n \007S\360\313Je\374\340\001\322\203\216\365D>\211\274\350\247f\007)t\361\242dC1\214\344\227\366\022Y\nE\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\022-\n\004mycc\022%\n\007\n\001a\022\002\010\003\n\007\n\001b\022\002\010\003\032\007\n\001a\032\00290\032\010\n\001b\032\003210\032\003\010\310\001\"\013\022\004mycc\032\0031.0" endorsement:<endorser:"\n\007Org1MSP\022\252\006-----BEGIN CERTIFICATE-----\nMIICKDCCAc+gAwIBAgIRALSsXnqINpUj6hOSYRPQHmUwCgYIKoZIzj0EAwIwczEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHDAaBgNVBAMTE2Nh\nLm9yZzEuZXhhbXBsZS5jb20wHhcNMTgxMTIwMDUwNjAwWhcNMjgxMTE3MDUwNjAw\nWjBqMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMN\nU2FuIEZyYW5jaXNjbzENMAsGA1UECxMEcGVlcjEfMB0GA1UEAxMWcGVlcjAub3Jn\nMS5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABODeb4l7/hWf\nHW+35fT94SKKGZJREI6rA94LxPLjYafStUYwxWGb9NdONjqPVBY6F6GQwYhYaEeN\n7u7N/BHNfjWjTTBLMA4GA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMCsGA1Ud\nIwQkMCKAIJ/KbpUsqzu5aofmh7jlY9KGg4RarTgVbiLqwcCD/9pIMAoGCCqGSM49\nBAMCA0cAMEQCIG+qTcb8hDMLNlqPvH6bNvNjBNLEO+leC7mB4v+jEFQOAiANN2kc\nmiDQBDuuPXYuUczQpM8YbQM7lYAuxPTSsAUJEQ==\n-----END CERTIFICATE-----\n" signature:"0E\002!\000\357\272\23689\253\350\330\324\377\244z\336\322\275\301\316T\014\021b\222\357uRqn4\244\202\r\364\002 \022\353\313\230$9m]=Q\254\025\204\2528K\273\003G\326Z\2414\201\334\224\225\212d\024\233\177" > 

How to solve this error?

Nov 20, 2018 in Blockchain by digger
• 26,740 points
3,479 views

2 answers to this question.

+3 votes

This is because you have not installed the chaincode on org2. To solve this error, you have to install mycc chaincode on org2 and then try. You can try this command:

CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp CORE_PEER_ADDRESS=peer0.org2.example.com:7051 CORE_PEER_LOCALMSPID="Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/chaincode_example02/go/

And after this, run the invoke and query commands.

answered Nov 20, 2018 by Omkar
• 69,220 points
Thanks, it's been a week searching for a solution to this problem.
+1 vote
I have the same error, did you fix it?
answered Jan 12, 2019 by basteran
Yes. I had installed chain only on one Org. As mentioned by @omkar, I installed chaincode in Org2 and ran the command.. it worked.

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

Hyperledger Fabric: Could not resolve all dependencies for configuration

First, build the chaincode using gradle build. You should ...READ MORE

answered Nov 2, 2018 in Blockchain by Omkar
• 69,220 points
1,634 views
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,470 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,037 views
+1 vote
1 answer
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