BerriAI/litellm · error · ProxyException

GENERIC_USERINFO_ENDPOINT not set. Set it in .env file

Error message

GENERIC_USERINFO_ENDPOINT not set. Set it in .env file

What it means

Error "GENERIC_USERINFO_ENDPOINT not set. Set it in .env file" thrown in BerriAI/litellm.

Source

Thrown at litellm/proxy/management_endpoints/ui_sso.py:1315

            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,
    )
    verbose_proxy_logger.debug("GENERIC_REDIRECT_URI: %s\nGENERIC_CLIENT_ID: %s\n", redirect_url, generic_client_id)

    return (
        generic_client_secret,
        generic_scope,
        generic_authorization_endpoint,

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Set GENERIC_USERINFO_ENDPOINT in the .env file and restart the proxy.

When it happens

Trigger: Thrown at litellm/proxy/management_endpoints/ui_sso.py:1315 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/70a2253a8fb8d197. Report an issue: GitHub.