BerriAI/litellm · error · HTTPException
Team doesn't exist. Got={team_row}
Error message
Team doesn't exist. Got={team_row} What it means
Error "Team doesn't exist. Got={team_row}" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/team_endpoints.py:2233
updated_kv = prisma_client.jsonify_team_object(db_data=updated_kv)
team_update_data: Final[Mapping[str, object]] = updated_kv
team_row: Final[LiteLLM_TeamTable | None] = _nullable(
await _team_db(prisma_client).update(
where={"team_id": data.team_id},
data=team_update_data,
# `object_permission` is included so `_refresh_cached_team`
# doesn't write a cached team with the relation nulled out —
# see team_model_add for the full rationale.
include={
"litellm_model_table": True,
"object_permission": True,
},
)
)
if team_row is None or team_row.team_id is None:
raise HTTPException(
status_code=400,
detail={"error": f"Team doesn't exist. Got={team_row}"},
)
verbose_proxy_logger.info("Successfully updated team - %s, info", team_row.team_id)
await sync_team_access_group_membership(prisma_client=prisma_client, team_id=team_row.team_id)
await _refresh_cached_team(
team_row=team_row,
user_api_key_cache=user_api_key_cache,
proxy_logging_obj=proxy_logging_obj,
)
# Enterprise Feature - Audit Logging. Enable with litellm.store_audit_logs = True
if litellm.store_audit_logs is True:
await _create_team_update_audit_log(
existing_team_row=existing_team_row,
updated_kv=updated_kv,
team_id=data.team_id,View on GitHub (pinned to 77b7c6c40c)
Solutions
- Check that the team_id is correct and the team still exists (list teams via /team/list).
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/team_endpoints.py:2233 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/537af7aab8abc357.
Report an issue: GitHub.