{"record":{"id":"85c5706c45fa40ef","repo":"BerriAI/litellm","slug":"failed-to-initialize-vantage-settings-e","errorCode":null,"errorMessage":"Failed to initialize Vantage settings: {e}","messagePattern":"Failed to initialize Vantage settings: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":329,"sourceCode":"            detail={\"error\": CommonProxyErrors.not_allowed_access.value},\n        )\n\n    try:\n        await _set_vantage_settings(\n            api_key=request.api_key,\n            integration_token=request.integration_token,\n            base_url=request.base_url,\n        )\n\n        verbose_proxy_logger.info(\"Vantage settings initialized successfully\")\n\n        return VantageInitResponse(message=\"Vantage settings initialized successfully\", status=\"success\")\n\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.error(\"Error initializing Vantage settings: %s\", e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to initialize Vantage settings: {e}\"},\n        )\n\n\n@router.post(\n    \"/vantage/dry-run\",\n    tags=[\"Vantage\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=VantageExportResponse,\n)\nasync def vantage_dry_run_export(\n    request: VantageDryRunRequest,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    Perform a dry run export using the Vantage logger.\n","sourceCodeStart":311,"sourceCodeEnd":347,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L311-L347","documentation":"Catch-all 500 in the Vantage init endpoint: persisting the initial api_key/integration_token/base_url via _set_vantage_settings failed with an unexpected error (typically a database write or serialization problem). Original exception is logged first.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:329 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy logs for the underlying error and verify the init payload (API key, workspace) before retrying."],"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"}