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
fix: Improve login error handling and database resilience
Better Error Differentiation:
- 401 INVALID_CREDENTIALS: Wrong email/password (user error)
- 503 SERVICE_UNAVAILABLE: Database/server issues (system error)
- Clear error messages for different failure types
Database Wake-up for Login:
- Retry login with database wake-up on 503/network errors
- 2-second wait for database to wake up before retry
- Graceful fallback to original error if retry fails
Frontend Error Handling:
- Specific error messages for different failure types
- Network error detection and user-friendly messages
- Better UX with actionable error descriptions
Now users will know if it's their credentials or if the server is sleeping!
401 = Wrong password, 503 = Database sleeping, Network Error = Connection issue
0 commit comments