{"record":{"id":"af56490301e4258a","repo":"BerriAI/litellm","slug":"cloudzero-settings-not-found","errorCode":null,"errorMessage":"CloudZero settings not found","messagePattern":"CloudZero settings not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/spend_tracking/cloudzero_endpoints.py","lineNumber":538,"sourceCode":"            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        # Check if CloudZero settings exist\n        cloudzero_config: Final = await ConfigRepository(prisma_client).table.find_first(\n            where={\"param_name\": \"cloudzero_settings\"}\n        )\n\n        if cloudzero_config is None:\n            raise HTTPException(\n                status_code=404,\n                detail={\"error\": \"CloudZero settings not found\"},\n            )\n\n        # Delete only the CloudZero settings entry\n        # This uses a specific where clause to target only the cloudzero_settings row\n        await ConfigRepository(prisma_client).table.delete(where={\"param_name\": \"cloudzero_settings\"})\n\n        verbose_proxy_logger.info(\"CloudZero settings deleted successfully\")\n\n        return CloudZeroInitResponse(message=\"CloudZero settings deleted successfully\", status=\"success\")\n\n    except HTTPException as e:\n        raise e\n    except Exception as e:\n        verbose_proxy_logger.error(\"Error deleting CloudZero settings: %s\", e)\n        raise HTTPException(\n            status_code=500,","sourceCodeStart":520,"sourceCodeEnd":556,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/spend_tracking/cloudzero_endpoints.py#L520-L556","documentation":"Error \"CloudZero settings not found\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/spend_tracking/cloudzero_endpoints.py:538 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Initialize CloudZero settings via /cloudzero/init before deleting or reading them."],"exampleFix":null,"handlingStrategy":null,"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"}