{"record":{"id":"e8e380c78c5453d7","repo":"BerriAI/litellm","slug":"collection-name-is-required-got-request-body","errorCode":null,"errorMessage":"Collection name is required. Got {request_body}","messagePattern":"Collection name is required\\. Got (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py","lineNumber":458,"sourceCode":"    Enable using Milvus `/vectors` endpoint as a pass-through endpoint.\n    \"\"\"\n\n    provider_config: Final = ProviderConfigManager.get_provider_vector_stores_config(provider=LlmProviders.MILVUS)\n    if not provider_config:\n        raise HTTPException(\n            status_code=500,\n            detail=\"Unable to find Milvus vector store config.\",\n        )\n\n    # check if managed vector store index is used\n    request_body: Final = await get_request_body(request)\n\n    # check collectionName\n    collection_name: Final = cast(str | None, request_body.get(\"collectionName\"))\n    extra_headers = {}\n    base_target_url: str | None = None\n    if not collection_name:\n        raise HTTPException(\n            status_code=400,\n            detail=f\"Collection name is required. Got {request_body}\",\n        )\n\n    if not litellm.vector_store_index_registry or not litellm.vector_store_registry:\n        raise HTTPException(\n            status_code=500,\n            detail=\"Unable to find Milvus vector store index registry or vector store registry.\",\n        )\n\n    # check if vector store index\n    is_vector_store_index: Final = litellm.vector_store_index_registry.is_vector_store_index(\n        vector_store_index_name=collection_name\n    )\n\n    if not is_vector_store_index:\n        raise HTTPException(\n            status_code=400,","sourceCodeStart":440,"sourceCodeEnd":476,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py#L440-L476","documentation":"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.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:458 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":"validation","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"}