BerriAI/litellm · error · HTTPException
Tags not found: {missing_tags}
Error message
Tags not found: {missing_tags} What it means
POST /tag/info compares requested names against rows actually found in the DB; any missing_tags are reported in a 404 so the client knows which subset of the batch does not exist rather than silently returning partial data.
Source
Thrown at litellm/proxy/management_endpoints/tag_management_endpoints.py:516
- names: List[str] - List of tag names to get information for
"""
from litellm.proxy.proxy_server import prisma_client
if prisma_client is None:
raise HTTPException(status_code=500, detail="Database not connected")
try:
# Query tags from database with budget info
tag_records: Final = await _table(TagRepository(prisma_client)).find_many(
where={"tag_name": {"in": data.names}},
include={"litellm_budget_table": True},
)
# Check if any requested tags don't exist
found_tag_names: Final = {tag.tag_name for tag in tag_records}
missing_tags: Final = [name for name in data.names if name not in found_tag_names]
if missing_tags:
raise HTTPException(status_code=404, detail=f"Tags not found: {missing_tags}")
# Build response
requested_tags: Final = {}
for tag_record in tag_records:
# Parse model_info from JSON
model_info: object = {}
if tag_record.model_info:
if isinstance(tag_record.model_info, str):
model_info = json.loads(tag_record.model_info)
else:
model_info = tag_record.model_info
tag_dict = {
"name": tag_record.tag_name,
"description": tag_record.description,
"models": tag_record.models,
"model_info": model_info,
"created_at": tag_record.created_at.isoformat(),View on GitHub (pinned to 77b7c6c40c)
Solutions
- Create the missing tags first, or correct the tag names.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/tag_management_endpoints.py:516 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/7f7fd1e2b97d0d6e.
Report an issue: GitHub.