Hyperledger Fabric: Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded

Problem I was following this Hyperledger Fabric tutorial: Building Your First Network There’s a shell script called byfn.sh which stands for Build Your First Network. I ran the following command which generates the required certificates and genesis block: ./byfn.sh generate And then, ran this command which brings up the network with docker-compose up: ./byfn.sh up … Read more

Hyperledger Fabric: Unable to build Chaincode

Problem Scenario: You are working on Hyperledger Fabric and you are following this tutorial: Chaincode for Developers and when you try building your chaincode, it hungs up forever. You run the following command on your terminal to build the chaincode you wrote: go get -u –tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim But, you get no result (either success … Read more

Hyperledger Fabric: sendPeersProposal – Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: Invalid Smart Contract function name.)

This is a solution to one problem scenario while working on Hyperledger Fabric. I was working on modifying a Hyperledger Fabric Sample Application called fabcar. You can face this issue with other sample apps as well. The issue occurred when I tried modifying the function name in the chaincode file of the sample app. Problem: … Read more