Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: relm9 on August 14, 2011, 01:09:14 AM



Title: solved: 500 internal server error when polling Bitcoin JSON RPC
Post by: relm9 on August 14, 2011, 01:09:14 AM
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?


Title: Re: solved: 500 internal server error when polling Bitcoin JSON RPC
Post by: Anonymous on August 14, 2011, 02:46:29 AM
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.


Title: Re: solved: 500 internal server error when polling Bitcoin JSON RPC
Post by: payb.tc on December 28, 2011, 11:23:02 AM
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.