Skip to content

Spotify now requires Premium account to use this feature #3

Description

@HairyPloper

StoY-backend | HTTP Error for GET to https://api.spotify.com/v1/me/playlists with Params: {'limit': 50, 'offset': 0} returned 403 due to Active premium subscription required for the owner of the app. When the subscription status changes, it can take a few hours before requests are allowed again.
StoY-backend | Traceback (most recent call last):
StoY-backend | File "/usr/local/lib/python3.11/site-packages/spotipy/client.py", line 275, in _internal_call
StoY-backend | response.raise_for_status()
StoY-backend | File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
StoY-backend | raise HTTPError(http_error_msg, response=self)
StoY-backend | requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.spotify.com/v1/me/playlists?limit=50&offset=0
StoY-backend |
StoY-backend | During handling of the above exception, another exception occurred:
StoY-backend |
StoY-backend | Traceback (most recent call last):
StoY-backend | File "/app/main.py", line 233, in get_playlists
StoY-backend | playlists = get_user_playlists(sp)
StoY-backend | ^^^^^^^^^^^^^^^^^^^^^^
StoY-backend | File "/app/spotify.py", line 6, in get_user_playlists
StoY-backend | results = sp_client.current_user_playlists(limit=50)
StoY-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StoY-backend | File "/usr/local/lib/python3.11/site-packages/spotipy/client.py", line 652, in current_user_playlists
StoY-backend | return self._get("me/playlists", limit=limit, offset=offset)
StoY-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StoY-backend | File "/usr/local/lib/python3.11/site-packages/spotipy/client.py", line 327, in _get
StoY-backend | return self._internal_call("GET", url, payload, kwargs)
StoY-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StoY-backend | File "/usr/local/lib/python3.11/site-packages/spotipy/client.py", line 297, in _internal_call
StoY-backend | raise SpotifyException(
StoY-backend | spotipy.exceptions.SpotifyException: http status: 403, code:-1 - https://api.spotify.com/v1/me/playlists?limit=50&offset=0:
StoY-backend | Active premium subscription required for the owner of the app. When the subscription status changes, it can take a few hours before requests are allowed again., reason: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions