I have invoked my chaincode with this command
> peer chaincode invoke -o orderer.example.com:7050 --tls
> $CORE_PEER_TLS_ENABLED --cafile
> /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
> -C ethos -n ethos_ccv100 -c '{"Args":["CreatePatientInfo","123456", "22", "175","74","133","37","Eggs","Fever", "Wei Quan", "Tsu",
> "11April1995","tsuweiquan@gmail.com","96259561", "SINGAPOREAN",
> "Chinese", "Buddist", "Single","13Aug2017"]}'
Now, when I run either of this command:
peer chaincode query -C ethos -n ethos_ccv100 -c '{"Args["queryPatientInfo","123456"]}'
or
peer chaincode query -C ethos -n ethos_ccv100 -c '{"function":"queryPatientInfo","Args":["123456"]}'
I am getting this output which is different from what I expected:
2018-30-10 12:48:32.066 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-30-10
12:48:32.066 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2018-30-10
12:48:32.066 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2018-30-10
12:48:32.067 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2018-30-10
12:48:32.067 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext:
0A98070A6A08031A0B08A095C1CC0510...74496E666F0A09533935313139323447 2018-30-10 12:48:32.067 UTC
[msp/identity] Sign -> DEBU 006 Sign: digest:
4920E5394B2048EC5629886A51A0F022BED4803495C9FC08B5AB62A1463B92BD Query Result (Raw): 2018-30-10 12:48:32.073 UTC [main] main -> INFO 007 Exiting.....
root@6b6ec9e233e3:/opt/gopath/src/github.com/hyperledger/fabric/peer#