mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #1032] .artist() query hanging #617
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#617
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 @wstonehouse on GitHub (Oct 14, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1032
Describe the bug
When trying to query the information of an artist, the query hangs. I thought this could be an issue with rate limits, but I haven't run my code in a while, and I make sure this is the first query I execute. I've tried other queries as well, all which work perfectly. I can extract my playlist and get the songs from my playlist. But the moment I want to get information on the artist, it ceases to work. It just hangs for an indefinite amount of time. The odd part was that nothing in my code changed. It was working perfectly fine one moment, then just stopped working, and hasn't began working again all day. I don't get any errors, but I pasted some of the output when I do a keyboard inturrupt.
Your code
import spotipy
import spotipy.util as util
from spotipy.oauth2 import SpotifyOAuth
username = 'hidden'
token = util.prompt_for_user_token(username)
spotifyObject = spotipy.Spotify(auth=token, requests_timeout=10, retries=10)
artistDetails = spotifyObject.artist('3EgMK920cIH5aLxFnJ6zSi')
Expected behavior
For the last line of code to return information about the artist with their code.
Output
Environment:
@CDeLeon94 commented on GitHub (Nov 6, 2023):
I think I might be having a similar issue, no matter what I try to do with the client object after creating it, the subsequent call just hangs. Keyboard interrupt doesn't seem to do anything, presumably because it wont get through until the sleep timer ends.
@CDeLeon94 commented on GitHub (Nov 6, 2023):
Related? https://github.com/spotipy-dev/spotipy/issues/913
@wstonehouse commented on GitHub (Nov 7, 2023):
I figured my issue out. It was a simple case of Spotify limiting the amount
of queries you can perform. I was able to confirm this because my code
worked just fine with a friend's dev account, but not with mine. They then
seemed to lift the limit after 24 hours because it started to work again
the next day.
On Mon, Nov 6, 2023 at 4:42 PM CDeLeon94 @.***> wrote:
@dieser-niko commented on GitHub (May 5, 2024):
Closing as it seems the problem has been solved.