Bitcoin Forum
May 14, 2024, 04:02:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: solved: 500 internal server error when polling Bitcoin JSON RPC  (Read 3925 times)
relm9 (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000



View Profile
August 14, 2011, 01:09:14 AM
Last edit: August 14, 2011, 01:29:02 AM by relm9
 #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?
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
Merit: 1000



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:  

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