adds 429 error and "retry-after" header from reponse to logs#212
Merged
Googolplexed0 merged 3 commits intoGoogolplexed0:mainfrom Apr 20, 2026
Merged
adds 429 error and "retry-after" header from reponse to logs#212Googolplexed0 merged 3 commits intoGoogolplexed0:mainfrom
Googolplexed0 merged 3 commits intoGoogolplexed0:mainfrom
Conversation
Author
|
I added a new commit that makes the retry delay equal to the timeout time given by a 429 error. I also add 5 seconds to that just as a buffer in case the timing is off. I suspect I have been timed out for 24 hours because zotify was repeatedly not respecting the timeout time, maybe this would help? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have been getting 429 errors and recently learned about how it is a rate limit error from spotify and that it is not zotify's fault. I also learned it returns a header in the response called "retry-after" which returns how long your account is timed out in seconds. Id like to add this info to the error log so it is more clear what the issue is and also how long the user is timed out for so i know when to try again.
Also a quick aside, in vscode I have my
editor.detectIndentationsetting set to true so I hope the existing tabs/spaces are respected. On my end I am seeing that each existing tab is made up of 4 spaces and the code I added has this too.