Skip to content

adds 429 error and "retry-after" header from reponse to logs#212

Merged
Googolplexed0 merged 3 commits intoGoogolplexed0:mainfrom
DerKO9:main
Apr 20, 2026
Merged

adds 429 error and "retry-after" header from reponse to logs#212
Googolplexed0 merged 3 commits intoGoogolplexed0:mainfrom
DerKO9:main

Conversation

@DerKO9
Copy link
Copy Markdown

@DerKO9 DerKO9 commented Apr 18, 2026

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.detectIndentation setting 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.

@DerKO9
Copy link
Copy Markdown
Author

DerKO9 commented Apr 19, 2026

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?

Copy link
Copy Markdown
Owner

@Googolplexed0 Googolplexed0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Googolplexed0 Googolplexed0 merged commit 99f723f into Googolplexed0:main Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants