{"record":{"id":"b2e99acc44aed729","repo":"BerriAI/litellm","slug":"polling-response-missing-status-field","errorCode":null,"errorMessage":"Polling response missing 'status' field","messagePattern":"Polling response missing 'status' field","errorType":"exception","errorClass":"AzureOpenAIError","httpStatus":502,"severity":"error","filePath":"litellm/llms/azure/azure.py","lineNumber":921,"sourceCode":"                raise AzureOpenAIError(\n                    status_code=502,\n                    message=f\"Rejected polling URL: {ssrf_err}\",\n                )\n            response = await async_handler.get(\n                url=operation_location_url,\n                headers=headers,\n            )\n\n            await response.aread()\n\n            timeout_secs: Final[int] = AZURE_OPERATION_POLLING_TIMEOUT\n            start_time: Final = time.time()\n            if \"status\" not in response.json():\n                # Don't reflect the raw response body — when the polling\n                # URL points at an internal JSON API (cloud metadata\n                # service etc.) reflecting it here turns Blind SSRF into\n                # Full-Read SSRF. VERIA-51.\n                raise AzureOpenAIError(\n                    status_code=502,\n                    message=\"Polling response missing 'status' field\",\n                )\n            while response.json()[\"status\"] not in [\"succeeded\", \"failed\"]:\n                if time.time() - start_time > timeout_secs:\n                    raise AzureOpenAIError(status_code=408, message=\"Operation polling timed out.\")\n\n                await asyncio.sleep(int(response.headers.get(\"retry-after\") or 10))\n                response = await async_handler.get(\n                    url=operation_location_url,\n                    headers=headers,\n                )\n                await response.aread()\n\n            if response.json()[\"status\"] == \"failed\":\n                error_data: Final = response.json()\n                # Preserve Azure error details (e.g. content_policy_violation,\n                # inner_error, content_filter_results) as structured body so","sourceCodeStart":903,"sourceCodeEnd":939,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/azure/azure.py#L903-L939","documentation":"Error \"Polling response missing 'status' field\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/azure/azure.py:921 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the polling response body; the long-running operation endpoint did not return a 'status' field. Verify api_version."],"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"}