{"record":{"id":"7bb1bff4bc3dad37","repo":"BerriAI/litellm","slug":"failed-to-retrieve-vantage-settings-e","errorCode":null,"errorMessage":"Failed to retrieve Vantage settings: {e}","messagePattern":"Failed to retrieve Vantage settings: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":171,"sourceCode":"                integration_token_masked=None,\n                base_url=None,\n                status=None,\n            )\n\n        masked_settings: Final = _sensitive_masker.mask_dict(settings)\n\n        return VantageSettingsView(\n            api_key_masked=masked_settings.get(\"api_key\"),\n            integration_token_masked=masked_settings.get(\"integration_token\"),\n            base_url=settings.get(\"base_url\"),\n            status=\"configured\",\n        )\n\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.error(\"Error retrieving Vantage settings: %s\", e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to retrieve Vantage settings: {e}\"},\n        )\n\n\n@router.put(\n    \"/vantage/settings\",\n    tags=[\"Vantage\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=VantageInitResponse,\n)\nasync def update_vantage_settings(\n    request: VantageSettingsUpdate,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    Update existing Vantage settings.\n","sourceCodeStart":153,"sourceCodeEnd":189,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L153-L189","documentation":"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.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:171 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy logs for the underlying exception, verify database connectivity, and retry."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}