Bitcoin Forum
November 19, 2024, 08:44:03 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: JSON & PHP Error [resolved]  (Read 3564 times)
joeyjoe (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
August 22, 2011, 08:43:42 PM
Last edit: August 23, 2011, 04:16:43 PM by joeyjoe
 #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
<?php
require_once('jsonRPCClient.php');
$bitcoin = new jsonRPCClient('http://user:password@86.21.243.231: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


Bitcoin PHP programmer for hire! (HTML / CSS / JQuery / AJAX / .NET).
bytedisorder
Hero Member
*****
Offline Offline

Activity: 489
Merit: 500



View Profile WWW
August 28, 2012, 11:51:34 PM
 #2

How was this resolved, because I'm having the same issue.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!