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 98 forks source link

Unhandled JSON parsing error on server listing #163

Closed pbonnell closed 5 years ago

pbonnell commented 5 years ago

Occasionally, when fetching the server list, the following failure occurs:. This appears to be in the fetch/parse routine for fastest server HERE . when connecting to https://api.protonmail.ch/vpn/logicals

# sudo pvpn --fastest
Fetching ProtonVPN servers...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Connecting...
[!] Error connecting to VPN.