Author

Topic: PHP Error shows RPC info (Read 1365 times)

hero member
Activity: 700
Merit: 500
May 28, 2011, 12:44:44 AM
#4
That's the base url, afaik json server are like 127.0.0.1:/results.json or something.
newbie
Activity: 88
Merit: 0
May 28, 2011, 12:44:31 AM
#3
Thanks! Smiley
hero member
Activity: 588
Merit: 500
May 28, 2011, 12:43:59 AM
#2
Configure PHP properly. Errors should NEVER be sent to the browser. Specifically, display_errors should be off.
newbie
Activity: 88
Merit: 0
May 28, 2011, 12:42:37 AM
#1
Code:
Warning: fopen(http://[email protected]:8332) [function.fopen]: failed to open stream: HTTP request failed! in \www\classes\jsonRPCClient.php on line 132

Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://USER:[email protected]:8332' in\www\classes\jsonRPCClient.php:140 Stack trace: #0 \www\vote.php(32): jsonRPCClient->__call('getbalance', Array) #1 \www\vote.php(32): jsonRPCClient->getbalance('ec8956637a99787...') #2 {main} thrown in \www\classes\jsonRPCClient.php on line 140

How can I avoid this? This error pops up occasionally and refreshing the page always works. I just wish it wouldn't show the RPC username and password.
Jump to: