Fatal error: Uncaught exception 'Exception' with message 'Incorrect response id (request id: 1, response id: )' in /home/content/61/11420661/html/massivetest/jsonRPCClient.php:144
Stack trace:
#0 /home/content/61/11420661/html/massivetest/index.php(6): jsonRPCClient->__call('getinfo', Array)
#1 /home/content/61/11420661/html/massivetest/index.php(6): jsonRPCClient->getinfo()
#2 {main}
thrown in /home/content/61/11420661/html/massivetest/jsonRPCClient.php on line 144
This error means that your username or password is incorrect. This is what you should do:
- Edit bitcoin.conf on the server and change the username and password to something that contains only letters and numbers. No special characters or spaces. You can make it really long if you like. Perhaps use openssl rand -hex 32 to get a random password.
- Try with the code below
$btc_username = 'yourusername';
$btc_password = 'yourpassword';
$btc_ip = '66.227.203.224';
$btc_port = 41337;
$coinye = new jsonRPCClient( "http://$btc_username:$btc_password@$btc_ip:$btc_port/" ) ;
echo "
\n";
print_r($coinye->getinfo());
echo "";
?>