BerriAI/litellm · error · HTTPException

There are no pass-through endpoints setup.

Error message

There are no pass-through endpoints setup.

What it means

The delete-endpoint handler found no pass_through_endpoints field value in the general config (None), meaning no pass-through endpoints have ever been registered on this proxy, so a delete operation has nothing to act on.

Source

Thrown at litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3386

    """
    from litellm.proxy.proxy_server import (
        get_config_general_settings,
        update_config_general_settings,
    )

    ## Get existing pass-through endpoint field value

    try:
        response: ConfigFieldInfo = await get_config_general_settings(
            field_name="pass_through_endpoints", user_api_key_dict=user_api_key_dict
        )
    except Exception:
        response = ConfigFieldInfo(field_name="pass_through_endpoints", field_value=None)

    ## Update field by removing endpoint
    pass_through_endpoint_data: Final[list | None] = response.field_value
    if response.field_value is None or pass_through_endpoint_data is None:
        raise HTTPException(
            status_code=400,
            detail={"error": "There are no pass-through endpoints setup."},
        )

    # Find the endpoint to delete
    found_endpoint: Final = _find_endpoint_by_id(pass_through_endpoint_data, endpoint_id)

    if found_endpoint is None:
        raise HTTPException(
            status_code=400,
            detail={"error": f"Endpoint with ID '{endpoint_id}' was not found in pass-through endpoint list."},
        )

    # Find the index for deleting from the list
    endpoint_index = None
    for idx, endpoint in enumerate(pass_through_endpoint_data):
        _endpoint = PassThroughGenericEndpoint(**endpoint) if isinstance(endpoint, dict) else endpoint
        if _endpoint.id == endpoint_id:

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Configure pass-through endpoints in config.yaml or via the API before querying/updating them.
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown at litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3386 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/9236905475906931. Report an issue: GitHub.