Can't figure out what I'm doing wrong.
I'm trying to access my node running on my computer via my webserver.
Keep getting the same error.
Fatal error: Uncaught exception 'Exception' with message 'Incorrect response id (request id: 1, response id: )' in /home/site/public_html/jsonRPCClient.php:152
Stack trace:
#0 /home/site/public_html/node.php(8): jsonRPCClient->__call('getinfo', Array)
#1 /home/site/public_html/node.php(8): jsonRPCClient->getinfo()
#2 {main}
thrown in /home/site/public_html/jsonRPCClient.php on line 152
I've searched, and have found similar threads with the same error as me, but no clear fix.
Put my webserver as rpcallowip...
my bitcoin.confserver=1
rpcuser=userRPC
rpcpassword=passRPC
rpctimeout=30
rpcallowip=68.65.122.148
rpcport=8332
test code<?php
require_once 'jsonRPCClient.php';
$btc= new jsonRPCClient('http://userRPC:passRPC@68.105.12.345:8332/');
echo "<pre>\n";
print_r($btc->getinfo());
echo "</pre>";
?>
Does it matter if I launch bitcoin core, vs bitcoind.exe since I put server=1 in my conf? I've tried launching both, they both do the same thing. I even receive the exact same error if I close my node down, so I'm clearly have an issue connecting. Bitcoind.exe doesn't do anything, it opens a command window, but there's no text or anything going on to confirm it's working... is that normal?