mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-25 00:25:49 +03:00
[GH-ISSUE #325] [BUG] Error Fetching Audio Key #59
Labels
No labels
bug
dependencies
duplicate
enhancement
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot-python-kokarare1212#59
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 @Resparing on GitHub (Nov 21, 2025).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/325
Runtime error when attempting to fetch Audio
@kokarare1212 commented on GitHub (Nov 22, 2025):
You probably need to use VORBIS instead of AAC.
@grote commented on GitHub (Dec 9, 2025):
happens here with
VorbisOnlyAudioQuality(AudioQuality.NORMAL)as well: https://github.com/kokarare1212/librespot-python/issues/315@cvdub commented on GitHub (Dec 26, 2025):
@grote is this happening every time or just after running for a while?
You may be hitting Spotify's rate limit.
@grote commented on GitHub (Dec 29, 2025):
It happens every time, but I am trying to download a large playlist, so maybe it runs into some rate-limiting before when gathering info on all tracks maybe?
@cvdub commented on GitHub (Dec 29, 2025):
My guess is you did hit the rate limit so you're getting the
Failed fetching audio key!error every time even if you re-run the script. I've had it take an hour or two for the rate limit to go away after heavy use.I'd had success waiting for ~5 seconds between each track stream. Any less than that and I start getting rate limited if I load enough songs.
I don't think this is a bug with librespot-python.
@grote commented on GitHub (Jan 5, 2026):
Note that I wasn't able to download a single file, so if I can hit a rate-limit before that, maybe there needs to be another option to slow down play list enumeration or something like that.
@radston12 commented on GitHub (Jan 13, 2026):
Seems like this issue comes from a spotify change with newer accounts.
As suggested by issues appearing in many librespot / general spotify clients
f.e.
https://github.com/librespot-org/librespot/issues/1649