piWallet
piWallet copied to clipboard
Ubuntu 1804 Wallet error - Unauthorized in /var/www/html/jsonRPCClient.php on line 133
Hi, has anyone been successful setting up pi wallet in ubuntu 1804? I have an x11 algo with masternodes. Everything else is now set up. The desktop pc wallet and optminer works. my mining pool is working (yiimp) desktop wallets work on pc. Explorer happily exploring away
my coind is running and fully indexed. I have checked and rechecked the rpc and database details. The certifcates and keys are good.
I have spent a couple of days trying everything I can think of to get this working.
apache 2 version PHP 5.6.40-61+ubuntu18.04.1+deb.sury.org+1
I keep getting this error
Warning: fopen(http://[email protected]:6821/): failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized in /var/www/html/jsonRPCClient.php on line 133
Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://fucucoinrpc:[email protected]:6821/' in /var/www/html/jsonRPCClient.php:141 Stack trace: #0 /var/www/html/classes/Client.php(17): jsonRPCClient->__call('getbalance', Array) #1 /var/www/html/classes/Client.php(17): jsonRPCClient->getbalance('zelles(piWallet...', 6) #2 /var/www/html/index.php(23): Client->getBalance('piWallet') #3 {main} thrown in /var/www/html/jsonRPCClient.php on line 141
line 133 of /var/www/html/jsonRPCClient.php shows as: if ($fp = fopen($this->url, 'r', false, $context)) {
line 144 is :- throw new Exception('Unable to connect to '.$this->url);
it appears to be unable to connec to the url but i have no idea why. I have tried the suggestions on the github posts without success
Any help gretaly appreciated. With thanks
Use localhost instead of 127.0.0.1
they need upgraded since jsonRPCClient is deprecated with newer model protocol