-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 Code Sent Back From Daemon #9
Comments
That's extremely strange. It uses the well-known JSONRPC library used by almost every daemon-based web application, are you sure it's headers? Bitcoin will return a 500 for a lot of reasons, often being you sending the wrong data type (i.e. string instead of float), or because it's still synchronizing the blockchain. |
I modified the code a bit changing line 141 to: To get a more specific response back: I'm only getting this "'Request error: Array" so it seems the json getting sent is malformed in some way (or at least bitcoind thinks so). |
Yeah, not sure what to do here. the JSONRPC library would be to blame here. It's worked on 5.4 and 5.5 previously without any issues, but this was also with older versions of Bitcoin, not sure if their RPC spec changed in some way too... If you can figure it out and submit a pull request (without breaking older versions of PHP...), I'd be happy to accept it. |
Got the same issue.
BTW, fixed to 3 confirmations as it enough to make further transactions ;) |
With PHP 5.6 and Bitcoin 0.10.0, +Coin is sending incorrect headers to bitcoind resulting in an 500 response. I beleive this may be down to recent changes in PHP 5.6 which means that cookies are being sent with fopen by default now. I could be wrong but I don't know much about the bitcoind RPC spec.
The text was updated successfully, but these errors were encountered: