Bitcoin Forum
December 07, 2016, 08:30:20 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: solved: 500 internal server error when polling Bitcoin JSON RPC  (Read 3262 times)
relm9
Hero Member
*****
Offline Offline

Activity: 784



View Profile
August 14, 2011, 01:09:14 AM
 #1

edit: never mind, restarted and that fixed it... weird.

Whenever I query Bitcoin's RPC port it throws a 500 server error with the following data:

{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}

I had this error before and fixed it a couple months ago, but I don't remember what I did :/ Anyone have any ideas?
1481142620
Hero Member
*
Offline Offline

Posts: 1481142620

View Profile Personal Message (Offline)

Ignore
1481142620
Reply with quote  #2

1481142620
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Anonymous
Guest

August 14, 2011, 02:46:29 AM
 #2

edit: never mind, restarted and that fixed it... weird.

Whenever I query Bitcoin's RPC port it throws a 500 server error with the following data:

{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}

I had this error before and fixed it a couple months ago, but I don't remember what I did :/ Anyone have any ideas?
It was your code structure for json that must have been the problem. You had a syntax error, that's all.
payb.tc
Hero Member
*****
Offline Offline

Activity: 812



View Profile
December 28, 2011, 11:23:02 AM
 #3

i'm getting the exact same issue and can't seem to resolve it.

i'm using the standard jsonrpc.php which i've used in other projects so i can't see why it's not working for me at the moment.

right before the fopen, i've echoed the url and the json string to check it, and then went to an online validator (http://jsonlint.com/) which told me the json was valid.

yet i still get the 500 error.

php.ini says yes to allow_url_fopen, and safe_mode is off.

i've tried restarting apache, and tried restarting bitcoin.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!