Open kalleknast opened 5 years ago
Line 95 in MCP.go (err := json.Unmarshal(bidsAsBytes, &bids)) fails with
err := json.Unmarshal(bidsAsBytes, &bids)
Error: endorsement failure during query. response: status:500 message:'Failed to parse bidsAsBytes. Got error: invalid character 'I' looking for beginning of value'
i.e. something is funny with
response := stub.InvokeChaincode("getBidsByRange", invokeArgs, channelID) bidsAsBytes := response.GetPayload()
I checked the documentation for shim and peer.Response but cannot figure out what is wrong.
shim
peer.Response
Line 95 in MCP.go (
err := json.Unmarshal(bidsAsBytes, &bids)
) fails withError: endorsement failure during query. response: status:500 message:'Failed to parse bidsAsBytes. Got error: invalid character 'I' looking for beginning of value'
i.e. something is funny with
I checked the documentation for
shim
andpeer.Response
but cannot figure out what is wrong.