Bitcoin Forum
May 26, 2017, 07:40:11 AM *
News: If the forum does not load normally for you, please send me a traceroute.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: PHP Error shows RPC info  (Read 1193 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)!
1495784411
Hero Member
*
Offline Offline

Posts: 1495784411

View Profile Personal Message (Offline)

Ignore
1495784411
Reply with quote  #2

1495784411
Report to moderator
Creating a Bitcoin client that fully implements the network protocol is extremely difficult. Bitcoin-Qt is the only known safe implementation of a full node. Some other projects attempt to compete, but it is not recommended to use such software for anything serious. (Lightweight clients like Electrum and MultiBit are OK.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1495784411
Hero Member
*
Offline Offline

Posts: 1495784411

View Profile Personal Message (Offline)

Ignore
1495784411
Reply with quote  #2

1495784411
Report to moderator
1495784411
Hero Member
*
Offline Offline

Posts: 1495784411

View Profile Personal Message (Offline)

Ignore
1495784411
Reply with quote  #2

1495784411
Report to moderator
1495784411
Hero Member
*
Offline Offline

Posts: 1495784411

View Profile Personal Message (Offline)

Ignore
1495784411
Reply with quote  #2

1495784411
Report to moderator
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!