ProtonVPN / protonvpn-cli

Legacy protonvpn-cli: ProtonVPN Command-Line Tool for Linux and macOS. This has been superseded by https://github.com/ProtonVPN/protonvpn-cli-ng
Other
607 stars 95 forks source link

protonvpn API not found with v2.2.1 #213

Open k0dk0de opened 4 years ago

k0dk0de commented 4 years ago

I upgraded the CLI to v2.2.1 this morning and trying to connect with that client fails with the following error:

user@host:~$ sudo protonvpn c -f  
[!] There was an error connecting to the ProtonVPN API.  
[!] Please make sure your connection is working properly!

What I have tested:

Here is the pvpn-cli.log file I get when trying to connect:

2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:84 —   #########################
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ###
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:86 —   #########################
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:87 — ['/usr/local/bin/protonvpn', 'c', '-f']
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:88 — USER: user
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/user/.pvpn-cli
2020-02-03 07:57:45,040 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': True, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor':       False, '--version': False, '-p': None, '<servername>': None, 'c': True, 'configure': False, 'connect':   False, 'd': False, 'disconnect': False, 'examples': False, 'init': False, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False}
2020-02-03 07:57:45,048 — protonvpn-cli — DEBUG — fastest:144 — Starting fastest connect
2020-02-03 07:57:45,049 — protonvpn-cli — DEBUG — disconnect:307 — Initiating disconnect
2020-02-03 07:57:45,054 — protonvpn-cli — DEBUG — is_connected:196 — Checking connection Status. OpenVPN processes: 0
2020-02-03 07:57:45,054 — protonvpn-cli — DEBUG — manage_dns:604 — Restoring DNS
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_dns:621 — No Backupfile found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_ipv6:680 — Restoring ip6tables
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_ipv6:695 — No Backupfile found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_killswitch:770 — Restoring iptables
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_killswitch:779 — No Backupfile found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — disconnect:347 — No connection found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — call_api:35 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals
2020-02-03 07:57:45,276 — protonvpn-cli — DEBUG — call_api:50 — Error connecting to ProtonVPN API`

Downgrading back to v2.2.0 and everything works great.

Rafficer commented 4 years ago

You're on the wrong repository.