{"record":{"id":"2ba553215165a6d5","repo":"BerriAI/litellm","slug":"azure-document-intelligence-operation-polling-time","errorCode":null,"errorMessage":"Azure Document Intelligence operation polling timed out after {timeout_secs} seconds","messagePattern":"Azure Document Intelligence operation polling timed out after (.+?) seconds","errorType":"exception","errorClass":"TimeoutError","httpStatus":null,"severity":"error","filePath":"litellm/llms/azure_ai/ocr/document_intelligence/transformation.py","lineNumber":444,"sourceCode":"            width_px = int(width)\n            height_px = int(height)\n\n        return OCRPageDimensions(width=width_px, height=height_px, dpi=dpi)\n\n    @staticmethod\n    def _check_timeout(start_time: float, timeout_secs: int) -> None:\n        \"\"\"\n        Check if operation has timed out.\n\n        Args:\n            start_time: Start time of the operation\n            timeout_secs: Timeout duration in seconds\n\n        Raises:\n            TimeoutError: If operation has exceeded timeout\n        \"\"\"\n        if time.time() - start_time > timeout_secs:\n            raise TimeoutError(f\"Azure Document Intelligence operation polling timed out after {timeout_secs} seconds\")\n\n    @staticmethod\n    def _get_retry_after(response: httpx.Response) -> int:\n        \"\"\"\n        Get retry-after duration from response headers.\n\n        Args:\n            response: HTTP response\n\n        Returns:\n            Retry-after duration in seconds (default: 2)\n        \"\"\"\n        retry_after: Final = int(response.headers.get(\"retry-after\", \"2\"))\n        verbose_logger.debug(\"Retry polling after: %s seconds\", retry_after)\n        return retry_after\n\n    @staticmethod\n    def _check_operation_status(response: httpx.Response) -> str:","sourceCodeStart":426,"sourceCodeEnd":462,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/azure_ai/ocr/document_intelligence/transformation.py#L426-L462","documentation":"Error \"Azure Document Intelligence operation polling timed out after {timeout_secs} seconds\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/azure_ai/ocr/document_intelligence/transformation.py:444 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Increase the polling timeout, or check the operation status in the Azure portal; analysis did not finish in time."],"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"}