Answer by Badr Bellaj for chaincode argument error: unexpected end of JSON input
In same cases, this error is generated byconst stateValue = await ctx.stub.getState(state); when the state does not exist.In other cases, it is becauseevaluateTransaction is used instead of...
View ArticleAnswer by kekomal for chaincode argument error: unexpected end of JSON input
Use quotation marks when referencing CC_CONSTRUCTOR variable. Otherwise, bash prioritizes inner spaces over inner quotation marks:peer chaincode instantiate -C $CC_CHANNEL_ID -n $CC_NAME -v $CC_VERSION...
View ArticleAnswer by ACaruso for chaincode argument error: unexpected end of JSON input
Thanks. I am setting env variables, then call the instantiate. Same variables are set for the install, which works fine.export CC_CONSTRUCTOR='{ "Args" : [ "Message" , "Hello World - Init message" ]...
View Articlechaincode argument error: unexpected end of JSON input
I have created a test network and I am able to install the chaincode I have created in golang. But when instantiating it I receive the following:2020-03-24 08:00:00.843 UTC [chaincodeCmd]...
View Article