mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
#21706 narrowed is_database_connection_error to only match PrismaErrors with connectivity keywords. That was correct for the reconnect use case but broke the allow_requests_on_db_unavailable behavior as a side effect. Fix: add is_database_transport_error with the narrow keyword-gated check and use it in the two reconnect call sites (auth_checks key lookup retry, utils.py watchdog). Restore is_database_connection_error to its original broad behavior (any PrismaError) so allow_requests_on_db_unavailable works correctly. Update the tests added in #21706 to assert against is_database_transport_error instead of is_database_connection_error. |
||
|---|---|---|
| .. | ||
| db_transaction_queue | ||
| mcp_server | ||
| test_check_migration.py | ||
| test_db_spend_update_writer.py | ||
| test_exception_handler.py | ||
| test_prisma_client.py | ||
| test_prisma_self_heal.py | ||
| test_rds_iam_token_expiry.py | ||