{"record":{"id":"2b5b4182a06ea2ea","repo":"BerriAI/litellm","slug":"failed-to-delete-vantage-settings-e","errorCode":null,"errorMessage":"Failed to delete Vantage settings: {e}","messagePattern":"Failed to delete Vantage settings: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/spend_tracking/vantage_endpoints.py","lineNumber":553,"sourceCode":"                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:\n        verbose_proxy_logger.error(\"Error deleting Vantage settings: %s\", e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to delete Vantage settings: {e}\"},\n        )\n","sourceCodeStart":535,"sourceCodeEnd":557,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/vantage_endpoints.py#L535-L557","documentation":"Catch-all 500 in delete_vantage_settings: deleting the config row or deregistering the in-memory VantageLogger callback threw an unexpected error. The config-row delete may have succeeded before the failure, so state can be partially torn down; the original exception is logged.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/vantage_endpoints.py:553 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy logs for the underlying error and confirm the settings exist before deleting."],"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"}