BerriAI/litellm · error · HTTPException
Team not found, passed team_id={data.team_id}
Error message
Team not found, passed team_id={data.team_id} What it means
Error "Team not found, passed team_id={data.team_id}" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1989
raise HTTPException(
status_code=400,
detail={
"error": f"team_member_budget must be a non-negative finite number. Received: {data.team_member_budget}"
},
)
if data.soft_budget is not None and (not math.isfinite(data.soft_budget) or data.soft_budget < 0):
raise HTTPException(
status_code=400,
detail={"error": f"soft_budget must be a non-negative finite number. Received: {data.soft_budget}"},
)
validate_budget_duration(data.budget_duration)
validate_budget_duration(data.team_member_budget_duration)
existing_team_row = await _team_db(prisma_client).find_unique(where={"team_id": data.team_id})
if existing_team_row is None:
raise HTTPException(
status_code=404,
detail={"error": f"Team not found, passed team_id={data.team_id}"},
)
# Verify caller has access to manage this team
await _verify_team_access(
team_obj=LiteLLM_TeamTable.model_validate(existing_team_row.model_dump()),
user_api_key_dict=user_api_key_dict,
)
_existing_team_metadata: Final[object] = getattr(existing_team_row, "metadata", None)
enforce_output_token_estimates_are_admin_only(
data=data,
existing_metadata=_existing_team_metadata if isinstance(_existing_team_metadata, dict) else None,
user_api_key_dict=user_api_key_dict,
entity="team",
)
View on GitHub (pinned to 77b7c6c40c)
Solutions
- Verify the team_id exists via GET /team/list or /team/info before updating it.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1989 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/fdd72d78cd2c8119.
Report an issue: GitHub.