Author

Topic: JSONRPC - not working with Bitcoin - others are 100% working (Read 2390 times)

hero member
Activity: 926
Merit: 1001
weaving spiders come not here
OH GOD SO STUPID!!!!!!!!!!

I forgot to open the port  Angry

BITWARE <---- THANK YOU

You are most welcome.
legendary
Activity: 4256
Merit: 1313
OH GOD SO STUPID!!!!!!!!!!

I forgot to open the port  Angry

BITWARE <---- THANK YOU

Glad you got it!

(Didn't know if you were running 0.9.x or 0.10.0)
full member
Activity: 221
Merit: 100
OH GOD SO STUPID!!!!!!!!!!

I forgot to open the port  Angry

BITWARE <---- THANK YOU
full member
Activity: 221
Merit: 100
Might not understand curl but:

curl: (6) Could not resolve host: 1.0,
curl: (6) Could not resolve host: id
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: getinfo,
curl: (6) Could not resolve host: params
curl: (3) [globbing] bad range specification in column 2
curl: (3) [globbing] unmatched close brace/bracket in column 1
{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}
full member
Activity: 221
Merit: 100
Are you sure this format is correct?  It does not look good to me:
rpcuser=username
rpcpassword=password
rpcallowip=::/0
rpcport=8332
server=1


rpcallowip=::/0 - ONLY TO OPEN ALL FOR TESTING....


Even with specific IP it dosen't work (Again other coins does NOT have issues)

according to the bitcoin changelog (v 0.10.0) then ip:* is no longer supported and should be ::/0

Accessing from localhost is not a problem

I have not tried CURL yet
legendary
Activity: 4256
Merit: 1313
Are you sure this format is correct?  It does not look good to me:
rpcuser=username
rpcpassword=password
rpcallowip=::/0
rpcport=8332
server=1


rpcallowip=::/0 - ONLY TO OPEN ALL FOR TESTING....


Even with specific IP it dosen't work (Again other coins does NOT have issues)
full member
Activity: 221
Merit: 100
rpcuser=username
rpcpassword=password
rpcallowip=::/0
rpcport=8332
server=1


rpcallowip=::/0 - ONLY TO OPEN ALL FOR TESTING....


Even with specific IP it dosen't work (Again other coins does NOT have issues)
member
Activity: 112
Merit: 10
You probably don't. Read your debug.log.


What should I be looking for?
Any line that contains "RPC". Unfortunately not all types of RPC errors show up in debug.log, though.

First of all try curl locally on the same machine you run bitcoin-qt to get more detailed error messages (some Linux distros and Mac OS contain curl already, otherwise download from http://curl.haxx.se/).
Code:
curl --data-binary '{"jsonrpc": "1.0", "id":"mycurltest", "method": "getinfo", "params": [] }' -u : 127.0.0.1:8332

BTW, what does your bitcoin.conf look like?
full member
Activity: 221
Merit: 100
YES I have rpcallowip=xxx.xxx.xxx.xxx set correct because other coins are working from external source.
You probably don't. Read your debug.log.


What should I be looking for?
full member
Activity: 221
Merit: 100
Look at router and firewall settings.
Why should this be an issue with bitcoin, when litecoin and doge is running perfect with same script? Other ports naturally, but script is identical
staff
Activity: 4284
Merit: 8808
YES I have rpcallowip=xxx.xxx.xxx.xxx set correct because other coins are working from external source.
You probably don't. Read your debug.log.
hero member
Activity: 926
Merit: 1001
weaving spiders come not here
Look at router and firewall settings.
full member
Activity: 221
Merit: 100
Well

 require_once 'jsonRPCClient.php';
 
  $bitcoin = new jsonRPCClient('http://user:[email protected]:8332/');
 
  echo "
\n";
  print_r($bitcoin->getinfo());
  echo "
";


Now this runs perfect localhost, but dosen't work when I run from external server. YES I have rpcallowip=xxx.xxx.xxx.xxx set correct because other coins are working from external source.
legendary
Activity: 1072
Merit: 1189
Hard to say without seeing the script...
full member
Activity: 221
Merit: 100
I have a script which is working when I access the bitcoin-qt.exe from localhost. I have allowrpc= set to the external server but for some reason it is not working?

The same script is running with a few ALTCoins without any issues, so it is not an IP, script error (as far as I know)?

Any ideas? Oh the script is php, is that's and issue...
Jump to: