Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle possible token expired errors #431

Merged

Conversation

sighingnow
Copy link
Contributor

@sighingnow sighingnow commented Mar 4, 2023

The unofficial API actually returns 200 OK and

{"detail":{"message":"Your authentication token has expired. Please try signing in again.","type":"invalid_request_error","param":null,"code":"token_expired"}

@sighingnow
Copy link
Contributor Author

(polite ping @transitive-bullshit

Copy link
Owner

@transitive-bullshit transitive-bullshit left a comment

Choose a reason for hiding this comment

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

hey sorry for taking so long to review this. I really like this change!

going to merge & make a few small tweaks.

thanks so much @sighingnow 🙏

@transitive-bullshit transitive-bullshit merged commit c0c2e71 into transitive-bullshit:main Apr 2, 2023
@sighingnow sighingnow deleted the fix-error-handling branch April 3, 2023 02:27
@sighingnow
Copy link
Contributor Author

hey sorry for taking so long to review this. I really like this change!

going to merge & make a few small tweaks.

thanks so much @sighingnow 🙏

Thanks for merging!

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