Rafficer / linux-cli-community

Linux command-line client for ProtonVPN. Written in Python.
https://protonvpn.com
GNU General Public License v3.0
1.31k stars 198 forks source link

[BUG] Traceback on connection with Fedora 33 #307

Open Mikaela opened 3 years ago

Mikaela commented 3 years ago

Describe the bug

Whenever I attempt to connect, I get a traceback.

To Reproduce

  1. protonvpn-cli connect --fastest
  2. See error

Expected behavior

ProtonVPN establishes connection.

Error Messages/Program Output/Log Messages (~/.pvpn-cli/pvpn-cli.log)

Traceback (most recent call last):
  File "/usr/bin/protonvpn-cli", line 33, in <module>
    sys.exit(load_entry_point('protonvpn-cli==3.3.1', 'console_scripts', 'protonvpn-cli')())
  File "/usr/lib/python3.9/site-packages/protonvpn_cli/main.py", line 21, in main
    ProtonVPNCLI()
  File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 46, in __init__
    getattr(self, args.command)()
  File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 111, in connect
    self.cli_wrapper.connect(args)
  File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli_wrapper.py", line 124, in connect
    conn_status = self.setup_connection()
  File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli_wrapper.py", line 516, in setup_connection
    ) = self.server_manager.generate_server_certificate(
  File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/services/server_manager.py", line 63, in generate_server_certificate
    return self.cert_manager.generate_vpn_cert(
  File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/services/certificate_manager.py", line 74, in generate_vpn_cert
    self.save_servername(servername)
  File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/services/connection_state_manager.py", line 18, in save_servername
    last_metadata = self.get_connection_metadata(
  File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/services/connection_state_manager.py", line 84, in get_connection_metadata
    return self.manage_metadata(
  File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/services/metadata_manager.py", line 32, in manage_metadata
    return metadata_action_dict[action](metadata_type, metadata)
  File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/services/metadata_manager.py", line 41, in get_metadata_from_file
    return json.load(f)
  File "/usr/lib64/python3.9/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib64/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

~/.pvpn-cli/pvpn-cli.log doesn't get written.

Desktop (please complete the following information):

Additional context

I am using the repository https://repo.protonvpn.com/fedora-33-unstable/ and my "desktop environmnet" is i3wm.