Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Ubuntu 1804 Wallet error - Unauthorized in /var/www/html/jsonRPCClient.php on line 133 #113

Open
RochmanReese opened this issue Aug 27, 2022 · 2 comments

Comments

@RochmanReese
Copy link

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://...@127.0.0.1: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:goan2work@127.0.0.1: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

@drwatson84
Copy link

Use localhost instead of 127.0.0.1

@SoraKohaku
Copy link

they need upgraded since jsonRPCClient is deprecated with newer model protocol

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants