RequestHandler
is returning error responses after waiting in _handle_wait_time
#81
Closed
1 task done
Labels
Milestone
Musify version
1.0.0
What happened?
KeyErrors appear after running some functions in the
SpotifyAPI
due to the fact thatRequestHandler
is returning JSON response data that is an error response with an "error" key present.What do you think should have happened instead?
After waiting, it should request a new response and return that. It seems that it may be getting a new response and returning it anyway?
Please paste any logs that you see related to this issue here
How to reproduce
Run enough requests through the API to trigger a rate limit that is within backoff boundaries. Check results
Operating System
Windows 11
Python version
3.12.1
Anything else?
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: