Author

Topic: JSON & PHP Error [resolved] (Read 3546 times)

legendary
Activity: 1498
Merit: 1000
August 28, 2012, 08:08:07 PM
#3
How was this resolved, because I'm having the same issue.

he probably added "allowip=" to bitcoin.conf since the bitcoind only allows localhost request without the allowip  variable
hero member
Activity: 489
Merit: 500
August 28, 2012, 07:51:34 PM
#2
How was this resolved, because I'm having the same issue.
full member
Activity: 224
Merit: 100
August 22, 2011, 04:43:42 PM
#1
Hi,

Im just trying to setup PHP to communicate with my daemon. I have the server running on my pc with the PHP on my webhost. I have managed to get the server running and have checked the ports are forwarding which they are.

but i am getting this error message:

Quote
Fatal error: Uncaught exception 'Exception' with message 'Incorrect response id (request id: 1, response id: )' in /home/joeyjoec/public_html/bitcoinpaypal/jsonRPCClient.php:152 Stack trace: #0 [internal function]: jsonRPCClient->__call('getinfo', Array) #1 /home/joeyjoec/public_html/bitcoinpaypal/index.php(Cool: jsonRPCClient->getinfo() #2 {main} thrown in /home/joeyjoec/public_html/bitcoinpaypal/jsonRPCClient.php on line 152

my index.php is:

Quote
require_once('jsonRPCClient.php');
$bitcoin = new jsonRPCClient('http://user:[email protected]:8333/');

//Same as bitcoind.exe getinfo
print_r($bitcoin->getinfo());
?>


also tried port 8334 as they are both being used by the daemon.

I have also been unable to use the daemon from my local pc, getting error:

Quote
C:\Users\Joe>C:\Users\Joe\Desktop\bitcoin-0.3.24\daemon\bitcoind.exe getinfo
error: couldn't connect to server

any help would be great thanks

Jump to: