BerriAI/litellm · error · ProxyException
getattr(e, "detail", f"error({e})")
Error message
getattr(e, "detail", f"error({e})") What it means
Error "getattr(e, "detail", f"error({e})")" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/key_management_endpoints.py:5601
sort_by=sort_by,
sort_order=sort_order,
expand=expand,
status=status,
project_id=project_id,
access_group_id=access_group_id,
agent_id=agent_id,
use_substring_matching=use_substring_matching,
expires_filter=expires if isinstance(expires, str) else None,
)
verbose_proxy_logger.debug("Successfully prepared response")
return response
except Exception as e:
verbose_proxy_logger.exception("Error in list_keys: %s", e)
if isinstance(e, HTTPException):
raise ProxyException(
message=getattr(e, "detail", f"error({e})"),
type=ProxyErrorTypes.internal_server_error,
param=getattr(e, "param", "None"),
code=getattr(e, "status_code", fastapi.status.HTTP_500_INTERNAL_SERVER_ERROR),
)
elif isinstance(e, ProxyException):
raise e
raise ProxyException(
message="Authentication Error, " + str(e),
type=ProxyErrorTypes.internal_server_error,
param=getattr(e, "param", "None"),
code=fastapi.status.HTTP_500_INTERNAL_SERVER_ERROR,
)
async def _apply_non_admin_alias_scope(
user_api_key_dict: UserAPIKeyAuth,
prisma_client: PrismaClient,View on GitHub (pinned to 77b7c6c40c)
Solutions
- Read the error detail in the response for the underlying cause and address it.
- Check proxy logs for the full error, then retry after fixing the cause.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/key_management_endpoints.py:5601 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/f59e944cea02cb1e.
Report an issue: GitHub.