mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
- Guard int() on x-stack-actual-status header against malformed values in _parse_response and both retry loops (ValueError falls back to response.status_code) - Validate response.json() returns dict before calling .get() on known-error body (non-dict JSON falls back to empty dict) - Add None guard to get_email_delivery_stats before model_validate (matches pattern used by get_user, get_team, get_item)