Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rahulEth/e5fc4b32fb11e8c12aae4c96b923b25d to your computer and use it in GitHub Desktop.
Save rahulEth/e5fc4b32fb11e8c12aae4c96b923b25d to your computer and use it in GitHub Desktop.
Hyperledger Fabric

Error :

 2020-02-14 10:25:26.069 UTC [endorser] callChaincode -> INFO 6cc3 [channelheader][f4380706] Entry chaincode: name:"mychannel"
2020-02-14 10:25:27.750 UTC [chaincode] HandleTransaction -> ERRO 6cc4 [f4380706] Failed to handle GET_STATE. error: no revision tag detected
github.com/hyperledger/fabric/core/ledger/util/couchdb.getRevisionHeader

Solution:

if you attempt to GetState() on an empty string above error reflects in peer logs. apply proper checks inside your chaincode to check whether string is empty or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment