Skip to content

[BUG] SSLError #17

@ramiatoui

Description

@ramiatoui

System Info:

  • OS: Ubuntu 20.04

Additional context


###SKIPPING: GENERAL DOWNLOAD ERROR: HTTPSConnectionPool(host='audio4-gm-fb.spotifycdn.com', port=443): Max retries exceeded with url: /audio/dc568607a69842af4b9902087df4013b62c2ec3e?Expires=1698274098~FullPath~hmac=Q9dtDoZE5BLy6Bu0wpqu73A_4jj4DBoT-40_Mgy1YgM= (Caused by SSLError(SSLCertVerificationError("hostname 'audio4-gm-fb.spotifycdn.com' doesn't match 'audio-gm-off.spotifycdn.com'")))
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 400, in connect
    _match_hostname(cert, self.assert_hostname or server_hostname)
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 410, in _match_hostname
    match_hostname(cert, asserted_hostname)
  File "/usr/lib/python3.8/ssl.py", line 420, in match_hostname
    raise CertificateError("hostname %r "
ssl.SSLCertVerificationError: ("hostname 'audio4-gm-fb.spotifycdn.com' doesn't match 'audio-gm-off.spotifycdn.com'",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sukuna/.local/lib/python3.8/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='audio4-gm-fb.spotifycdn.com', port=443): Max retries exceeded with url: /audio/dc568607a69842af4b9902087df4013b62c2ec3e?Expires=1698274098~FullPath~hmac=Q9dtDoZE5BLy6Bu0wpqu73A_4jj4DBoT-40_Mgy1YgM= (Caused by SSLError(SSLCertVerificationError("hostname 'audio4-gm-fb.spotifycdn.com' doesn't match 'audio-gm-off.spotifycdn.com'")))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sukuna/Desktop/ZSpotifyGUI/source/track.py", line 192, in download_track
    stream = ZSpotify.get_content_stream(track_id, ZSpotify.DOWNLOAD_QUALITY)
  File "/home/sukuna/Desktop/ZSpotifyGUI/source/zspotify.py", line 160, in get_content_stream
    return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None)
  File "/home/sukuna/.local/lib/python3.8/site-packages/librespot/audio/__init__.py", line 736, in load
    return self.load_track(playable_id, audio_quality_picker, preload,
  File "/home/sukuna/.local/lib/python3.8/site-packages/librespot/audio/__init__.py", line 797, in load_track
    return self.load_stream(file, track, None, preload, halt_listener)
  File "/home/sukuna/.local/lib/python3.8/site-packages/librespot/audio/__init__.py", line 751, in load_stream
    return CdnFeedHelper.load_track(self.__session, track, file,
  File "/home/sukuna/.local/lib/python3.8/site-packages/librespot/audio/__init__.py", line 339, in load_track
    streamer = session.cdn().stream_file(file, key, url, halt_listener)
  File "/home/sukuna/.local/lib/python3.8/site-packages/librespot/audio/__init__.py", line 438, in stream_file
    return CdnManager.Streamer(
  File "/home/sukuna/.local/lib/python3.8/site-packages/librespot/audio/__init__.py", line 575, in __init__
    response = self.request(range_start=0,
  File "/home/sukuna/.local/lib/python3.8/site-packages/librespot/audio/__init__.py", line 629, in request
    response = self.__session.client().get(
  File "/home/sukuna/.local/lib/python3.8/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/home/sukuna/.local/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/sukuna/.local/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/home/sukuna/.local/lib/python3.8/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='audio4-gm-fb.spotifycdn.com', port=443): Max retries exceeded with url: /audio/dc568607a69842af4b9902087df4013b62c2ec3e?Expires=1698274098~FullPath~hmac=Q9dtDoZE5BLy6Bu0wpqu73A_4jj4DBoT-40_Mgy1YgM= (Caused by SSLError(SSLCertVerificationError("hostname 'audio4-gm-fb.spotifycdn.com' doesn't match 'audio-gm-off.spotifycdn.com'")))```

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions