Bitcoin Forum
December 10, 2016, 01:36:04 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: PHP Error shows RPC info  (Read 1152 times)
sentry
Newbie
*
Offline Offline

Activity: 27


View Profile WWW
May 28, 2011, 04:42:37 AM
 #1

Code:
Warning: fopen(http://...@127.0.0.1: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:PASS@127.0.0.1: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.

Donations @ http://www.bitcoinplus.com/generate?for=533592
You don't have to give anything, just your idle time if you like what I'm doing.

Use Bitcoin7 (https://www.bitcoin7.com/?ref=8986)!
1481333764
Hero Member
*
Offline Offline

Posts: 1481333764

View Profile Personal Message (Offline)

Ignore
1481333764
Reply with quote  #2

1481333764
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
error
Hero Member
*****
Offline Offline

Activity: 574



View Profile
May 28, 2011, 04:43:59 AM
 #2

Configure PHP properly. Errors should NEVER be sent to the browser. Specifically, display_errors should be off.

15UFyv6kfWgq83Pp3yhXPr8rknv9m6581W
sentry
Newbie
*
Offline Offline

Activity: 27


View Profile WWW
May 28, 2011, 04:44:31 AM
 #3

Thanks! Smiley

Donations @ http://www.bitcoinplus.com/generate?for=533592
You don't have to give anything, just your idle time if you like what I'm doing.

Use Bitcoin7 (https://www.bitcoin7.com/?ref=8986)!
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700


View Profile
May 28, 2011, 04:44:44 AM
 #4

That's the base url, afaik json server are like 127.0.0.1:<port>/results.json or something.
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!