BerriAI/litellm · error · HTTPException

CloudZero settings not found

Error message

CloudZero settings not found

What it means

Error "CloudZero settings not found" thrown in BerriAI/litellm.

Source

Thrown at litellm/proxy/spend_tracking/cloudzero_endpoints.py:538

            detail={"error": CommonProxyErrors.not_allowed_access.value},
        )

    try:
        from litellm.proxy.proxy_server import prisma_client

        if prisma_client is None:
            raise HTTPException(
                status_code=500,
                detail={"error": CommonProxyErrors.db_not_connected_error.value},
            )

        # Check if CloudZero settings exist
        cloudzero_config: Final = await ConfigRepository(prisma_client).table.find_first(
            where={"param_name": "cloudzero_settings"}
        )

        if cloudzero_config is None:
            raise HTTPException(
                status_code=404,
                detail={"error": "CloudZero settings not found"},
            )

        # Delete only the CloudZero settings entry
        # This uses a specific where clause to target only the cloudzero_settings row
        await ConfigRepository(prisma_client).table.delete(where={"param_name": "cloudzero_settings"})

        verbose_proxy_logger.info("CloudZero settings deleted successfully")

        return CloudZeroInitResponse(message="CloudZero settings deleted successfully", status="success")

    except HTTPException as e:
        raise e
    except Exception as e:
        verbose_proxy_logger.error("Error deleting CloudZero settings: %s", e)
        raise HTTPException(
            status_code=500,

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Initialize CloudZero settings via /cloudzero/init before deleting or reading them.

When it happens

Trigger: Thrown at litellm/proxy/spend_tracking/cloudzero_endpoints.py:538 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/af56490301e4258a. Report an issue: GitHub.