{"record":{"id":"778c50c6746d1a92","repo":"BerriAI/litellm","slug":"detail","errorCode":null,"errorMessage":"{detail}","messagePattern":"\\{detail\\}","errorType":"http","errorClass":"ProxyException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/realtime_endpoints/endpoints.py","lineNumber":606,"sourceCode":"            llm_router=llm_router,\n            user_model=user_model,\n        )\n        upstream_resp: Final[httpx.Response] = await llm_call\n\n    except Exception as e:\n        await proxy_logging_obj.post_call_failure_hook(\n            user_api_key_dict=user_api_key_dict,\n            original_exception=e,\n            request_data=data,\n        )\n        verbose_proxy_logger.error(\n            \"litellm.proxy.realtime_endpoints.create_realtime_transcription_session(): Exception - %s\",\n            str(e),\n        )\n        if isinstance(e, ProxyException):\n            raise e\n        if isinstance(e, HTTPException):\n            raise ProxyException(\n                message=getattr(e, \"detail\", getattr(e, \"message\", str(e))),\n                type=getattr(e, \"type\", \"None\"),\n                param=getattr(e, \"param\", \"None\"),\n                code=getattr(e, \"status_code\", http_status.HTTP_400_BAD_REQUEST),\n            )\n        raise ProxyException(\n            message=getattr(e, \"message\", str(e)),\n            type=getattr(e, \"type\", \"None\"),\n            param=getattr(e, \"param\", \"None\"),\n            code=getattr(e, \"status_code\", 500),\n        )\n\n    if upstream_resp.status_code != 200:\n        verbose_proxy_logger.error(\n            \"Realtime transcription_sessions upstream error %s: %s\",\n            upstream_resp.status_code,\n            upstream_resp.text,\n        )","sourceCodeStart":588,"sourceCodeEnd":624,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/realtime_endpoints/endpoints.py#L588-L624","documentation":"Error normalization in the realtime transcription session endpoint: the upstream request or a failure hook raised; known exception types (ProxyException/HTTPException) are re-raised as-is and anything else is wrapped with the original detail text surfaced to the caller.","triggerScenarios":"Thrown at litellm/proxy/realtime_endpoints/endpoints.py:606 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the error detail returned; fix the realtime endpoint request or provider configuration accordingly."],"exampleFix":null,"handlingStrategy":"try-catch","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-14T00:17:10.932Z"}