Web-Demo not working

+1 vote
I am getting the following error .

{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}

 

 # config.txt

default.name=Default                   # name to display in the web interface
default.rpchost=127.0.0.1              # IP address of MultiChain node
default.rpcport=6446                 # usually default-rpc-port from params.dat
default.rpcuser=multichainrpc          # username for RPC from multichain.conf
default.rpcpassword=FfuPAxCeuhdD5fVXrgrv5mFi64LQTNmAJ9hAc7y5GUKq              

#multichain.conf

rpcuser=multichainrpc
rpcpassword=FfuPAxCeuhdD5fVXrgrv5mFi64LQTNmAJ9hAc7y5GUKq
rpcport=6446
rpcallowip=localhost

These are the files. Also , I have downloded all the files in web server's directory.
asked Apr 20, 2018 by agarwal.saachi94@gmail.com

1 Answer

0 votes

To debug this, please uncomment the two lines in the functions.php file in the Web Demo which contain the word print_r, then look at the full request and response for the API command that generated that error. You can also put that information here and we'll take a look.

answered Apr 22, 2018 by MultiChain
I am getting the following error after uncommenting the two lines.
Error :
Choose an available node to get started:
$rpc) if (isset($rpc['rpchost'])) echo '

'.html($rpc['name']).'
'; ?>
If you're seeing this it means you don't have PHP set up in your web server – please consult its documentation about that.
...