BerriAI/litellm · error · HTTPException
Endpoint with ID '{endpoint_id}' not found
Error message
Endpoint with ID '{endpoint_id}' not found What it means
Thrown during pass-through endpoint update: after loading the configured pass_through_endpoints list from the config store, no entry with the given endpoint_id exists (it may have been deleted or the ID is wrong), so there is nothing to modify.
Source
Thrown at litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3164
)
except Exception:
raise HTTPException(
status_code=404,
detail={"error": "No pass-through endpoints found"},
)
pass_through_endpoint_data: Final[list | None] = response.field_value
if pass_through_endpoint_data is None:
raise HTTPException(
status_code=404,
detail={"error": "No pass-through endpoints found"},
)
# Find the endpoint to update
found_endpoint: Final = _find_endpoint_by_id(pass_through_endpoint_data, endpoint_id)
if found_endpoint is None:
raise HTTPException(
status_code=404,
detail={"error": f"Endpoint with ID '{endpoint_id}' not found"},
)
# Find the index for updating 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:
endpoint_index = idx
break
if endpoint_index is None:
raise HTTPException(
status_code=404,
detail={"error": f"Could not find index for endpoint with ID '{endpoint_id}'"},
)
View on GitHub (pinned to 77b7c6c40c)
Solutions
- Verify the endpoint_id with the list endpoint (GET pass-through endpoints); use the exact ID returned.
- The endpoint may have been deleted; recreate it if needed.
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3164 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/a1897abd84471dac.
Report an issue: GitHub.