{"record":{"id":"0cf74ef2fe993a66","repo":"BerriAI/litellm","slug":"gigachat-authentication-request-failed-e","errorCode":null,"errorMessage":"GigaChat authentication request failed: {e}","messagePattern":"GigaChat authentication request failed: (.+?)","errorType":"exception","errorClass":"GigaChatAuthError","httpStatus":500,"severity":"error","filePath":"litellm/llms/gigachat/authenticator.py","lineNumber":179,"sourceCode":"        \"RqUID\": str(uuid.uuid4()),\n        \"Content-Type\": \"application/x-www-form-urlencoded\",\n    }\n    data: Final = {\"scope\": scope}\n\n    verbose_logger.debug(\"Requesting GigaChat access token from %s\", auth_url)\n\n    try:\n        client: Final = _get_http_client()\n        response: Final = client.post(auth_url, headers=headers, data=data, timeout=30)\n        response.raise_for_status()\n        return _parse_token_response(response)\n    except httpx.HTTPStatusError as e:\n        raise GigaChatAuthError(\n            status_code=e.response.status_code,\n            message=f\"GigaChat authentication failed: {e.response.text}\",\n        )\n    except httpx.RequestError as e:\n        raise GigaChatAuthError(\n            status_code=500,\n            message=f\"GigaChat authentication request failed: {e}\",\n        )\n\n\nasync def _request_token_async(\n    credentials: str,\n    scope: str,\n    auth_url: str,\n) -> tuple[str, int]:\n    \"\"\"Async version of _request_token_sync.\"\"\"\n    headers: Final = {\n        \"Authorization\": f\"Basic {credentials}\",\n        \"RqUID\": str(uuid.uuid4()),\n        \"Content-Type\": \"application/x-www-form-urlencoded\",\n    }\n    data: Final = {\"scope\": scope}\n","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/gigachat/authenticator.py#L161-L197","documentation":"Error \"GigaChat authentication request failed: {e}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/gigachat/authenticator.py:179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The token request itself failed (network/TLS); check connectivity to GigaChat's OAuth endpoint and any corporate proxy or CA bundle settings."],"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-23T08:17:48.524Z"}