Quantcast
Channel: chaincode argument error: unexpected end of JSON input - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article


Answer 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 Article


Answer 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 Article

chaincode 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
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>