BerriAI/litellm · error · ProxyException
GENERIC_TOKEN_ENDPOINT not set. Set it in .env file
Error message
GENERIC_TOKEN_ENDPOINT not set. Set it in .env file
What it means
Error "GENERIC_TOKEN_ENDPOINT not set. Set it in .env file" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/ui_sso.py:1308
generic_include_client_id: Final = os.getenv("GENERIC_INCLUDE_CLIENT_ID", "false").lower() == "true"
# Validate required environment variables
if generic_client_secret is None:
raise ProxyException(
message="GENERIC_CLIENT_SECRET not set. Set it in .env file",
type=ProxyErrorTypes.auth_error,
param="GENERIC_CLIENT_SECRET",
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
if generic_authorization_endpoint is None:
raise ProxyException(
message="GENERIC_AUTHORIZATION_ENDPOINT not set. Set it in .env file",
type=ProxyErrorTypes.auth_error,
param="GENERIC_AUTHORIZATION_ENDPOINT",
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
if generic_token_endpoint is None:
raise ProxyException(
message="GENERIC_TOKEN_ENDPOINT not set. Set it in .env file",
type=ProxyErrorTypes.auth_error,
param="GENERIC_TOKEN_ENDPOINT",
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
if generic_userinfo_endpoint is None:
raise ProxyException(
message="GENERIC_USERINFO_ENDPOINT not set. Set it in .env file",
type=ProxyErrorTypes.auth_error,
param="GENERIC_USERINFO_ENDPOINT",
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
verbose_proxy_logger.debug(
"authorization_endpoint: %s\ntoken_endpoint: %s\nuserinfo_endpoint: %s",
generic_authorization_endpoint,
generic_token_endpoint,
generic_userinfo_endpoint,View on GitHub (pinned to 77b7c6c40c)
Solutions
- Set GENERIC_TOKEN_ENDPOINT in the .env file and restart the proxy.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/ui_sso.py:1308 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/e5e734145e3fd133.
Report an issue: GitHub.