{"record":{"id":"86c4ddbd3b0d79cc","repo":"BerriAI/litellm","slug":"failed-to-update-vantage-settings-e","errorCode":null,"errorMessage":"Failed to update Vantage settings: {e}","messagePattern":"Failed to update Vantage settings: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":240,"sourceCode":"            if request.base_url is not None\n            else current_settings.get(\"base_url\", \"https://api.vantage.sh\")\n        )\n\n        await _set_vantage_settings(\n            api_key=updated_api_key,\n            integration_token=updated_token,\n            base_url=updated_base_url,\n        )\n\n        verbose_proxy_logger.info(\"Vantage settings updated successfully\")\n\n        return VantageInitResponse(message=\"Vantage settings updated successfully\", status=\"success\")\n\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.error(\"Error updating Vantage settings: %s\", e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to update Vantage settings: {e}\"},\n        )\n\n\nasync def is_vantage_setup_in_db() -> bool:\n    \"\"\"Check if Vantage is setup in the database.\"\"\"\n    try:\n        from litellm.proxy.proxy_server import prisma_client\n\n        if prisma_client is None:\n            return False\n\n        vantage_config: Final = await ConfigRepository(prisma_client).table.find_first(\n            where={\"param_name\": VANTAGE_SETTINGS_PARAM_NAME}\n        )\n\n        return vantage_config is not None and vantage_config.param_value is not None","sourceCodeStart":222,"sourceCodeEnd":258,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L222-L258","documentation":"Catch-all 500 in update_vantage_settings: the read-merge-write flow (loading current settings, merging fields, persisting via _set_vantage_settings) threw an unexpected error such as a database failure. The underlying exception is logged before this generic wrapper is raised.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:240 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy logs for the underlying error, verify the payload fields, and retry the update."],"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-14T00:17:10.932Z"}