{"record":{"id":"e5e734145e3fd133","repo":"BerriAI/litellm","slug":"generic-token-endpoint-not-set-set-it-in-env-fil","errorCode":null,"errorMessage":"GENERIC_TOKEN_ENDPOINT not set. Set it in .env file","messagePattern":"GENERIC_TOKEN_ENDPOINT not set\\. Set it in \\.env file","errorType":"http","errorClass":"ProxyException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/ui_sso.py","lineNumber":1308,"sourceCode":"    generic_include_client_id: Final = os.getenv(\"GENERIC_INCLUDE_CLIENT_ID\", \"false\").lower() == \"true\"\n\n    # Validate required environment variables\n    if generic_client_secret is None:\n        raise ProxyException(\n            message=\"GENERIC_CLIENT_SECRET not set. Set it in .env file\",\n            type=ProxyErrorTypes.auth_error,\n            param=\"GENERIC_CLIENT_SECRET\",\n            code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n        )\n    if generic_authorization_endpoint is None:\n        raise ProxyException(\n            message=\"GENERIC_AUTHORIZATION_ENDPOINT not set. Set it in .env file\",\n            type=ProxyErrorTypes.auth_error,\n            param=\"GENERIC_AUTHORIZATION_ENDPOINT\",\n            code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n        )\n    if generic_token_endpoint is None:\n        raise ProxyException(\n            message=\"GENERIC_TOKEN_ENDPOINT not set. Set it in .env file\",\n            type=ProxyErrorTypes.auth_error,\n            param=\"GENERIC_TOKEN_ENDPOINT\",\n            code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n        )\n    if generic_userinfo_endpoint is None:\n        raise ProxyException(\n            message=\"GENERIC_USERINFO_ENDPOINT not set. Set it in .env file\",\n            type=ProxyErrorTypes.auth_error,\n            param=\"GENERIC_USERINFO_ENDPOINT\",\n            code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n        )\n\n    verbose_proxy_logger.debug(\n        \"authorization_endpoint: %s\\ntoken_endpoint: %s\\nuserinfo_endpoint: %s\",\n        generic_authorization_endpoint,\n        generic_token_endpoint,\n        generic_userinfo_endpoint,","sourceCodeStart":1290,"sourceCodeEnd":1326,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/ui_sso.py#L1290-L1326","documentation":"Error \"GENERIC_TOKEN_ENDPOINT not set. Set it in .env file\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/ui_sso.py:1308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set GENERIC_TOKEN_ENDPOINT in the .env file and restart the proxy."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}