0

I am using IBM Blockchain VSCode extension for testing hyperlerdger fabric node js chaincode. But I faced an issue when I tried to install a chaincode on a peer.

Error

Failed to install on peer Org1Peer1 with reason: 8 RESOURCE_EXHAUSTED: grpc: received message larger than max (120126016 vs. 104857600)

What does it mean? Can anyone guide me?

Isha Padalia
  • 877
  • 7
  • 24
  • Sounds like you have created a massive chaincode package, you've probably included all sorts of stuff that's not required, eg node_modules, previous chaincode packages, .git directories etc. – david_k Oct 28 '20 at 11:02
  • @david_k Thank you for your response. I am a bit confused here. Like I am installing chaincode using IBM vs code And I just open a particular folder which was generated by default. SO how can I check this all packages? – Isha Padalia Oct 29 '20 at 05:14
  • You can view the contents of a chaincode package by going to the smart contracts panel right clicking the entry you tried to install and selecting view package information. – david_k Oct 30 '20 at 14:09

1 Answers1

0

The maximum payload size for a Fabric transaction is 100MB (including metadata, etc). Your chaincode package seems to be extraordinarily large.

Gari Singh
  • 11,418
  • 2
  • 18
  • 41