Failed to get endorsing peers/failed constructing descriptor for chaincode


Alexander
 

I'm writing an RESTful API application to interact with a chaincode deployed on a network, using fabric-sdk-go and the gateway package.

My chaincode is successfully building and deploying to the network, and I'm able to query the network for contracts created and put on the network via the CLI.

When running my API, I'm able to successfully connect to via the gateway, and retrieve my contract object, but I'm then unable to actually call the same chaincode 'Query' function in my deployed chaincode, with the error my application returns being:

Failed to evaluate: Failed to get endorsing peers: error getting channel response for channel [mychannel]: Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes:<name:"newcc" > 
and the response to my request being 
Discovery status Code: (11) UNKNOWN. Description: error received from Discovery Server: failed constructing descriptor for chaincodes:<name:"newcc" >
I do not know what these mean. Is this somehow related to my endorsement policy set for the chaincode? How can I go about figuring out this issue?
 

Join fabric@lists.hyperledger.org to automatically receive all group messages.