Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widevine issue since update? #7

Closed
ClosetGeek-Git opened this issue Sep 12, 2024 · 8 comments
Closed

Widevine issue since update? #7

ClosetGeek-Git opened this issue Sep 12, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@ClosetGeek-Git
Copy link

403 Client Error: Forbidden for url: https://gue1-spclient.spotify.com/widevine-license/v1/audio/license

[ERROR    14:11:47] (URL 1/2) Failed to check "true"
Traceback (most recent call last):
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\cli.py", line 392, in main
    url_info = downloader.get_url_info(url)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\downloader.py", line 95, in get_url_info
    raise Exception("Invalid URL")
Exception: Invalid URL
[INFO     14:11:47] (Track 1/1 from URL 2/2) Downloading "Rise Up"
[ERROR    14:11:48] (Track 1/1 from URL 2/2) Failed to download "Rise Up"
Traceback (most recent call last):
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 72, in _check_response
    response.raise_for_status()
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://gue1-spclient.spotify.com/widevine-license/v1/audio/license

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\cli.py", line 468, in main
    decryption_key = downloader_song.get_decryption_key(pssh)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\downloader_song.py", line 69, in get_decryption_key
    license = self.downloader.spotify_api.get_widevine_license_music(challenge)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 101, in get_widevine_license_music
    self._check_response(response)
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 74, in _check_response
    raise Exception(
Exception: Request failed with status code 403:
[INFO     14:11:48] Done (2 error(s))
@ClosetGeek-Git
Copy link
Author

ClosetGeek-Git commented Sep 12, 2024

When I go to 'https://gue1-spclient.spotify.com/widevine-license/v1/audio/license' within chrome while logged in on premium account it responds 'no token provided'

@ClosetGeek-Git
Copy link
Author

ClosetGeek-Git commented Sep 12, 2024

Also, it is saying I'm using a free account when I'm premium. I logged out of my Spotify within chrome, logged back in, copied new cookie (from Open Cookies.txt extension) to cookies.txt in root of where I'm downloading but still thinks I'm on a free account

[WARNING  14:20:43] Free account detected, lyrics will not be downloaded
[ERROR    14:20:43] (URL 1/2) Failed to check "true"
Traceback (most recent call last):
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\cli.py", line 392, in main
    url_info = downloader.get_url_info(url)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\downloader.py", line 95, in get_url_info
    raise Exception("Invalid URL")
Exception: Invalid URL
[INFO     14:20:44] (Track 1/1 from URL 2/2) Downloading "Rise Up"
[ERROR    14:20:44] (Track 1/1 from URL 2/2) Failed to download "Rise Up"
Traceback (most recent call last):
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 72, in _check_response
    response.raise_for_status()
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://gue1-spclient.spotify.com/widevine-license/v1/audio/license

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\cli.py", line 468, in main
    decryption_key = downloader_song.get_decryption_key(pssh)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\downloader_song.py", line 69, in get_decryption_key
    license = self.downloader.spotify_api.get_widevine_license_music(challenge)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 101, in get_widevine_license_music
    self._check_response(response)
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 74, in _check_response
    raise Exception(
Exception: Request failed with status code 403:
[INFO     14:20:44] Done (2 error(s))

@ClosetGeek-Git
Copy link
Author

A new error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Scripts\spotify-web-downloader.exe\__main__.py", line 7, in <module>
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\cli.py", line 317, in main
    spotify_api = SpotifyApi(cookies_path)
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 39, in __init__
    self._setup_session()
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python311\Lib\site-packages\spotify_web_downloader\spotify_api.py", line 61, in _setup_session
    token = re.search(r'accessToken":"(.*?)"', home_page).group(1)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

@AsHfIEXE
Copy link
Owner

Yes. Many users are facing this issue. Just be patient. I'm working on it

@AsHfIEXE AsHfIEXE self-assigned this Sep 13, 2024
@AsHfIEXE AsHfIEXE added the bug Something isn't working label Sep 13, 2024
@AsHfIEXE AsHfIEXE pinned this issue Sep 13, 2024
@AsHfIEXE
Copy link
Owner

AsHfIEXE commented Sep 13, 2024

Use this commandpip install spotify-web-downloader -U
Also, if you still get 403 errors after updating, try getting the .wvd from a different device/Android version.
And remember to always put your URLs under quotes ("www.example.com", and not www.example.com).

@ClosetGeek-Git
Copy link
Author

I don't have the .wvd file, and from what I'm seeing you need to put 'Rooted Android Device' at the very top of your list of prerequisites.

@AsHfIEXE
Copy link
Owner

I don't have the .wvd file, and from what I'm seeing you need to put 'Rooted Android Device' at the very top of your list of prerequisites.

After Update 1.8 prerequisites and installing is little bit different from earlier version

@AsHfIEXE
Copy link
Owner

Rinstall the tool by following the instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants