You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
auth: AuthRetryableError on a 502, 503 or 504 has httpx's generic message instead of the server's #1832
When the auth server responds with a 502, 503, 504 or one of Cloudflare's 52x codes, the AuthRetryableError that is raised carries httpx's generic text instead of the error message the server sent in the response body.
Expected: the error message is the server's message ("upstream unavailable" in the example below). When the body is not JSON, it falls back to the HTTP reason phrase.
supabase_auth.errors.AuthRetryableError: Server error '503 Service Unavailable' for url 'http://localhost/auth/v1/token?grant_type=password'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
Steps to reproduce
Call any auth method while the auth server returns a 503 with a JSON error body.
Read the message on the raised AuthRetryableError.
Activity