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

Show message from API backend when checking token fails #559

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

alexmojaki
Copy link
Contributor

Based on https://github.com/pydantic/platform/blob/521cc616400342fcdf6fdff5d4599527cd82b8f2/src/services/logfire-backend/logfire_backend/auth.py#L398-L403 and this PR, configure should produce the following warning when using a token that has exceeded allowed usage: Logfire API returned status code 402. Detail: Token has been blocked due usage limit

Copy link

cloudflare-workers-and-pages bot commented Oct 30, 2024

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 766068e
Status: ✅  Deploy successful!
Preview URL: https://a554a3de.logfire-docs.pages.dev
Branch Preview URL: https://alex-check-token-detail.logfire-docs.pages.dev

View logs

@alexmojaki alexmojaki enabled auto-merge (squash) October 30, 2024 14:53
@alexmojaki alexmojaki merged commit c890d54 into main Oct 30, 2024
16 checks passed
@alexmojaki alexmojaki deleted the alex/check-token-detail branch October 30, 2024 14:56
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