[GH-ISSUE #112] Spotify Exception - Audio Features #54

Closed
opened 2026-02-27 23:20:36 +03:00 by kerem · 2 comments
Owner

Originally created by @patalanov on GitHub (Aug 23, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/112

I've been successufully retrieving audio_features from Spotify's recommendations endpoint, like so:

features = sp.audio_features(tracks_ids)

However, if I provide a list of id's retrieved using search endpoint and pass them in the exact same fashion to sp.audio_features(), I get this:

spotipy.client.SpotifyException: http status: 414, code:-1 - https://api.spotify.com/v1/audio-features?ids=2ujuUDGDg6t5zsN6WZ3CFp,2EOThFm0IhwLkdpQzbvunO,40f9IDTMDpFf3CnTcPhY5F,78qoim2GGUkspkxV8kUtVv,4WZJ5W4gZJXvlqgliLkPCn,4mHS76nxzGrwo25KpzQwiX,1jRHh8JcdUV9zTiAmyzhU9...etc

is there a different authentication flow?

I have been using:

client_credentials_manager = SpotifyClientCredentials('id', 'secret')
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
sp.trace=False

what is going on here?

Originally created by @patalanov on GitHub (Aug 23, 2016). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/112 I've been successufully retrieving audio_features from Spotify's `recommendations endpoint`, like so: `features = sp.audio_features(tracks_ids)` However, if I provide a list of id's retrieved using `search endpoint` and pass them in the exact same fashion to `sp.audio_features()`, I get this: `spotipy.client.SpotifyException: http status: 414, code:-1 - https://api.spotify.com/v1/audio-features?ids=2ujuUDGDg6t5zsN6WZ3CFp,2EOThFm0IhwLkdpQzbvunO,40f9IDTMDpFf3CnTcPhY5F,78qoim2GGUkspkxV8kUtVv,4WZJ5W4gZJXvlqgliLkPCn,4mHS76nxzGrwo25KpzQwiX,1jRHh8JcdUV9zTiAmyzhU9...etc` is there a different authentication flow? I have been using: ``` client_credentials_manager = SpotifyClientCredentials('id', 'secret') sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager) sp.trace=False ``` what is going on here?
kerem closed this issue 2026-02-27 23:20:36 +03:00
Author
Owner

@Baschdl commented on GitHub (Aug 23, 2016):

It's not only issue #113, there are more problems. I will try to fix it.

<!-- gh-comment-id:241687258 --> @Baschdl commented on GitHub (Aug 23, 2016): It's not only issue #113, there are more problems. I will try to fix it.
Author
Owner

@Baschdl commented on GitHub (Aug 23, 2016):

Pull request #114 fixes this issue

<!-- gh-comment-id:241716184 --> @Baschdl commented on GitHub (Aug 23, 2016): Pull request #114 fixes this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#54
No description provided.