BerriAI/litellm · error · HTTPException
Failed to retrieve Vantage settings: {e}
Error message
Failed to retrieve Vantage settings: {e} What it means
Catch-all 500 from the get_vantage_settings handler: an unexpected exception (DB read failure, malformed JSON in param_value, masking error) escaped after the deliberate HTTPException re-raise. The original exception is logged with the full traceback before this generic message is returned.
Source
Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:171
integration_token_masked=None,
base_url=None,
status=None,
)
masked_settings: Final = _sensitive_masker.mask_dict(settings)
return VantageSettingsView(
api_key_masked=masked_settings.get("api_key"),
integration_token_masked=masked_settings.get("integration_token"),
base_url=settings.get("base_url"),
status="configured",
)
except HTTPException:
raise
except Exception as e:
verbose_proxy_logger.error("Error retrieving Vantage settings: %s", e)
raise HTTPException(
status_code=500,
detail={"error": f"Failed to retrieve Vantage settings: {e}"},
)
@router.put(
"/vantage/settings",
tags=["Vantage"],
dependencies=[Depends(user_api_key_auth)],
response_model=VantageInitResponse,
)
async def update_vantage_settings(
request: VantageSettingsUpdate,
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
):
"""
Update existing Vantage settings.
View on GitHub (pinned to 77b7c6c40c)
Solutions
- Check proxy logs for the underlying exception, verify database connectivity, and retry.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:171 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/7bb1bff4bc3dad37.
Report an issue: GitHub.