blockchain-samples icon indicating copy to clipboard operation
blockchain-samples copied to clipboard

Query method throws error

Open gokulamurthy opened this issue 8 years ago • 0 comments

I have deployed successfully and triggered "Init" and "Invoke" methods successfully with peer. But i can't get through this "Query" method

I have tried many times and many ways but couldn't able to get results for "Query" method, Please help me to find the bug:

/opt/gopath/src/github.com/hyperledger/blockchain-samples/contracts/industry/LogisticsSplit.0.6# peer chaincode query -n blReg -p github.com/hyperledger/blockchain-samples/contracts/industry/LogisticsSplit.0.6/BillofLading -c '{"function":"getBillOfLadingRegistration", "args":["{\"blno\":\"10203040\"}"]}' Error: Error querying chaincode: rpc error: code = 2 desc = Error:Failed to launch chaincode spec(Could not get deployment transaction for blReg - LedgerError - ResourceNotFound: ledger: resource not found)

Please help me to fix this issue.

gokulamurthy avatar Dec 20 '16 14:12 gokulamurthy