BerriAI/litellm · error · HTTPException
Collection name is required. Got {request_body}
Error message
Collection name is required. Got {request_body} What it means
Raised by the Milvus /vectors pass-through handler when the parsed request body lacks a 'collectionName' entry (missing, null, or empty). The collection name is the key used to resolve a LiteLLM-managed vector store index, so a request without it cannot be routed; the offending request body is echoed back in the detail.
Source
Thrown at litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:458
Enable using Milvus `/vectors` endpoint as a pass-through endpoint.
"""
provider_config: Final = ProviderConfigManager.get_provider_vector_stores_config(provider=LlmProviders.MILVUS)
if not provider_config:
raise HTTPException(
status_code=500,
detail="Unable to find Milvus vector store config.",
)
# check if managed vector store index is used
request_body: Final = await get_request_body(request)
# check collectionName
collection_name: Final = cast(str | None, request_body.get("collectionName"))
extra_headers = {}
base_target_url: str | None = None
if not collection_name:
raise HTTPException(
status_code=400,
detail=f"Collection name is required. Got {request_body}",
)
if not litellm.vector_store_index_registry or not litellm.vector_store_registry:
raise HTTPException(
status_code=500,
detail="Unable to find Milvus vector store index registry or vector store registry.",
)
# check if vector store index
is_vector_store_index: Final = litellm.vector_store_index_registry.is_vector_store_index(
vector_store_index_name=collection_name
)
if not is_vector_store_index:
raise HTTPException(
status_code=400,View on GitHub (pinned to 77b7c6c40c)
Solutions
- Include a non-empty collection name in the request body (collection_name field or path segment).
- Check the request body shown in the error for a missing or empty collection field.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:458 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/e8e380c78c5453d7.
Report an issue: GitHub.