Skip to content

fix: handle slow_down error during device auth (closes #438) - #441

Open
botbikamordehai2-sketch wants to merge 1 commit into
oskvr37:mainfrom
botbikamordehai2-sketch:fix/issue-438-1788355675
Open

fix: handle slow_down error during device auth (closes #438)#441
botbikamordehai2-sketch wants to merge 1 commit into
oskvr37:mainfrom
botbikamordehai2-sketch:fix/issue-438-1788355675

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

When running tiddl auth login, the authentication polling loop crashes with an unhandled AuthClientError if the Tidal API returns a slow_down error (or any other unexpected error). The traceback points to get_auth() in the polling loop.

Fix

Add explicit handling for the slow_down error, which instructs the client to increase the polling interval by 5 seconds and continue waiting. Also added a fallback handler for any unexpected AuthClientError to print an error message and exit gracefully instead of crashing.

Closes #438}

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.

🐛 Can not authenticate

1 participant