mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #946] recommendations timeout #570
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#570
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 @yuma-dev on GitHub (Mar 4, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/946
Describe the bug
Whenever I try to use the recommendations function I get this error:
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)I've tried at different times because I thought the Spotify servers might be messed up rn but it keeps happening with new code and different parameters.
Your code
only one of many examples:
Expected behavior
doesn't Time out
Output
Environment:
@Heroesluk commented on GitHub (Mar 22, 2023):
It works when you limit number of provided seed tracks to 5 or less though?
spotipy.recommendations function specifies that
""" Get a list of recommended tracks for one to five seeds.
(at least one of
seed_artists,seed_tracksandseed_genresare needed)"""
If i understand correctly this is intended behaviour that you can't provide more then 5 tracks/artists/genres
@jwreiser commented on GitHub (Mar 7, 2024):
I will provide a list of one seed and still get a time out. This was working before without a code change or updating spotipy so I imagine there is some issue on Spotify's side (is it rate limiting just this call (the others are fine)? Is it having an issue finding a recommendation?) I even lowered the limit from 20 (where it used to work) to 3 and it still times out. An even bigger problem is I can not get the requests_timeout to be honored so my application freezes a long time waiting for the timeout.
Here is my setup:
@dieser-niko commented on GitHub (Aug 5, 2024):
You could try out the same request on the Web API Documentation, just to make sure that this is not caused by the library.
@dieser-niko commented on GitHub (Jan 3, 2025):
I'm going to have to close this issue, the recommendations endpoint is now deprecated.