[GH-ISSUE #30] Hang with 'is_user_removed' #19

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

Originally created by @tomballgithub on GitHub (Dec 26, 2025).
Original GitHub issue: https://github.com/misiektoja/spotify_monitor/issues/30

When debugging earlier, I noticed that some requests that yield 429's seem to hang up and don't time out (for minutes - much longer than expected).

But the real issue is that this URL is generating a 429

Specifically, I am seeing in this code base that this URL is hanging up, but if I observe the network with Proxyman it is getting a 429. The same behavior happens without Proxyman in play.

def is_user_removed(access_token, user_uri_id):
    url = f"https://api.spotify.com/v1/users/{user_uri_id}"
Originally created by @tomballgithub on GitHub (Dec 26, 2025). Original GitHub issue: https://github.com/misiektoja/spotify_monitor/issues/30 When debugging earlier, I noticed that some requests that yield 429's seem to hang up and don't time out (for minutes - much longer than expected). But the real issue is that this URL is generating a 429 Specifically, I am seeing in this code base that this URL is hanging up, but if I observe the network with Proxyman it is getting a 429. The same behavior happens without Proxyman in play. ``` def is_user_removed(access_token, user_uri_id): url = f"https://api.spotify.com/v1/users/{user_uri_id}" ```
kerem closed this issue 2026-02-27 20:07:44 +03:00
Author
Owner

@tomballgithub commented on GitHub (Dec 26, 2025):

I verified that updating this function to use sp_accessToken_oauth_app and oauth_app=True works

<!-- gh-comment-id:3693177670 --> @tomballgithub commented on GitHub (Dec 26, 2025): I verified that updating this function to use sp_accessToken_oauth_app and oauth_app=True works
Author
Owner

@misiektoja commented on GitHub (Dec 27, 2025):

Thx, I totally forgot about it. I also improved error handling to avoid hanging up.

<!-- gh-comment-id:3693530144 --> @misiektoja commented on GitHub (Dec 27, 2025): Thx, I totally forgot about it. I also improved error handling to avoid hanging up.
Sign in to join this conversation.
No labels
Stale
bug
pull-request
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/spotify_monitor#19
No description provided.