Skip to content

[Bug] SSL: CERTIFICATE_VERIFY_FAILED #61

Description

@lprobsth

Description

GUI hangs on first launch on linux.

To reproduce
Install via installer. Open via desktop entry or via terminal.
Enter user name.

The GUI hangs.

Terminal shows:

[INFO] {Thread-4 (handle_update)} (wait_for_internet @ request_handler.py:21) Connected to the internet again 
[DEBUG] {Thread-24 (_wrapper)} (_wrapper @ request_handler.py:158) Thread ID: 139978747143872 
[DEBUG] {Thread-24 (_wrapper)} (_wrapper @ request_handler.py:175) Caught exception: 
NetworkError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1010) 
[WARNING] {Thread-4 (handle_update)} (attempt_request @ request_handler.py:108) A connection error occurred while getting user's Now Playing 
Traceback (most recent call last):
  File "httpx/_transports/default.py", line 101, in map_httpcore_exceptions
  File "httpx/_transports/default.py", line 250, in handle_request
  File "httpcore/_sync/connection_pool.py", line 256, in handle_request
  File "httpcore/_sync/connection_pool.py", line 236, in handle_request
  File "httpcore/_sync/connection.py", line 101, in handle_request
  File "httpcore/_sync/connection.py", line 78, in handle_request
  File "httpcore/_sync/connection.py", line 156, in _connect
  File "httpcore/_backends/sync.py", line 154, in start_tls
  File "contextlib.py", line 158, in __exit__
  File "httpcore/_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1010)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "pylast/__init__.py", line 915, in _download_response
  File "httpx/_client.py", line 1144, in post
  File "httpx/_client.py", line 825, in request
  File "httpx/_client.py", line 914, in send
  File "httpx/_client.py", line 942, in _send_handling_auth
  File "httpx/_client.py", line 979, in _send_handling_redirects
  File "httpx/_client.py", line 1014, in _send_single_request
  File "httpx/_transports/default.py", line 249, in handle_request
  File "contextlib.py", line 158, in __exit__
  File "httpx/_transports/default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1010)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "util/request_handler.py", line 161, in _wrapper
  File "pylast/__init__.py", line 2280, in get_now_playing
  File "pylast/__init__.py", line 1104, in _request
  File "pylast/__init__.py", line 939, in execute
  File "pylast/__init__.py", line 917, in _download_response
pylast.NetworkError: NetworkError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1010)

Expected behaviour
Loads users current playing title.

Versions & technical info

Manjaro linux using the most recent installer downloaded from releases.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageNeeds more testing

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions