Bitcoin Forum
June 14, 2024, 02:38:55 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind getreceivedbyaddress dosen't work  (Read 992 times)
Ervin (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
July 22, 2014, 04:23:55 PM
 #1

Hello everyone,

I have bitcoind-version 0.9.01, installed on VPS.
My site communicate with bitcoind  via jsonRPCClient(PHP), i can use getInfo,sendtoaddress functions but when i tried to use getreceivedbyaddress(addr,conf) i got an 500 error.

Code:
fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

I have no idea why getInfo works well, and getreceivedbyaddress dosen't. Huh Huh
How can i debug this kind of errors?

thank you for your help in advance


mcaizgk2
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
July 22, 2014, 07:27:37 PM
 #2

Try to capture the underlying JSON RPC calls with a HTTP debugging proxy server app like Charles or Wireshark which will show you what happens behind the scenes.
nuno12345
Sr. Member
****
Offline Offline

Activity: 276
Merit: 284


View Profile
July 26, 2014, 02:34:18 PM
 #3

Make sure your parameters are properly set, is it working when you run it directly at the daemon?
If so to test use the same exact parameters in the vps, getreceivedbyaddress("address", 3) if its working its something with the parameters.
I had troubles like this before because of unproperly formatted parameters, for sendto for example you should use (float)$amount or it will trow you a 500 error even if $amount is "10.1"
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!