Quantcast
Channel: chaincode argument error: unexpected end of JSON input - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by ACaruso for chaincode argument error: unexpected end of JSON input

$
0
0

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" ] }'export CC_NAME="testcc"export CC_PATH="testcc"export CC_VERSION="1.1"export CC_CHANNEL_ID="testchannel"peer chaincode instantiate -C $CC_CHANNEL_ID -n $CC_NAME  -v $CC_VERSION -c $CC_CONSTRUCTOR  -o $ORDERER_ADDRESS

I have tried escaping some that might need, that does not work. And again, the very same golang code and JSON constructor works on another test environment.

If I unset the CC_CONSTRUCTOR variable, I receive another error message, hence with high probability that is the problem.


Viewing all articles
Browse latest Browse all 4

Trending Articles



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