{"record":{"id":"29b581c222696535","repo":"BerriAI/litellm","slug":"vantage-settings-not-found","errorCode":null,"errorMessage":"Vantage settings not found","messagePattern":"Vantage settings not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":533,"sourceCode":"            status_code=403,\n            detail={\"error\": CommonProxyErrors.not_allowed_access.value},\n        )\n\n    try:\n        from litellm.proxy.proxy_server import prisma_client\n\n        if prisma_client is None:\n            raise HTTPException(\n                status_code=500,\n                detail={\"error\": CommonProxyErrors.db_not_connected_error.value},\n            )\n\n        vantage_config: Final = await ConfigRepository(prisma_client).table.find_first(\n            where={\"param_name\": VANTAGE_SETTINGS_PARAM_NAME}\n        )\n\n        if vantage_config is None:\n            raise HTTPException(\n                status_code=404,\n                detail={\"error\": \"Vantage settings not found\"},\n            )\n\n        await ConfigRepository(prisma_client).table.delete(where={\"param_name\": VANTAGE_SETTINGS_PARAM_NAME})\n\n        # Deregister in-memory VantageLogger so the scheduler stops firing\n        from litellm.integrations.vantage.vantage_logger import VantageLogger\n\n        litellm.logging_callback_manager.remove_callbacks_by_type(litellm.callbacks, VantageLogger)\n\n        verbose_proxy_logger.info(\"Vantage settings deleted successfully\")\n\n        return VantageInitResponse(message=\"Vantage settings deleted successfully\", status=\"success\")\n\n    except HTTPException:\n        raise\n    except Exception as e:","sourceCodeStart":515,"sourceCodeEnd":551,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L515-L551","documentation":"DELETE /vantage/settings found prisma_client connected but no VANTAGE_SETTINGS_PARAM_NAME row in LiteLLM_Config, so there is nothing to delete. Usually means settings were already deleted or never initialized via /vantage/init.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:533 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Initialize Vantage settings via /vantage/init before calling this endpoint."],"exampleFix":null,"handlingStrategy":"validation","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"}