mirror of
https://github.com/Aran404/SpotAPI.git
synced 2026-04-25 16:55:50 +03:00
[GH-ISSUE #48] Error when executing get_playlist_infos(): RequestError: Failed to complete request. #28
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SpotAPI#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Leogendra on GitHub (Sep 19, 2025).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/48
Currently, we're unable to get playlist infos (and other methods I guess).
Minimal code to reproduce the error:
Full error:
@Aran404 commented on GitHub (Sep 19, 2025):
Could you expand the error for me? As in access the .error property after catching it. I'll look into it soon
@Leogendra commented on GitHub (Sep 22, 2025):
I tried catching the exception as you suggested.
Here’s what it returns:
So it looks like the request isn’t even being built before sending.
Digging a bit into the code:
The error comes from
build_requestinspotapi/http/request.py, which fails because it receives no properurl/method. Tracing back, this happens inget_sha256_hash(spotapi/client.py):At this point,
self.js_packis stillNone(or not properly set). Converting it tostrgives"None", which explains theno request url or request method provideddetail.self.js_packis supposed to be set byself.get_session(), butget_session()fails because the expectedweb-player*.jsscript can’t be found anymore onhttps://open.spotify.com.So essentially,
get_playlist_info()ends up trying to call.get("None")instead of a real URL because Spotify changed the structure of their web player, so the library can’t grab thejs_packanymore.@Aran404 commented on GitHub (Sep 22, 2025):
Was a very small fix, they changed their cdn uri.
@Leogendra commented on GitHub (Sep 22, 2025):
Thanks for the quick update!
Don't forget to push the fix to pypi 👍