{
  "id": "python/httpx-readtimeout-large-response",
  "signature": "httpx.ReadTimeout: The read operation timed out after 30 seconds while reading response from 'https://api.example.com/v1/large-data'",
  "signature_zh": "httpx.ReadTimeout: 从'https://api.example.com/v1/large-data'读取响应时，读取操作在30秒后超时",
  "regex": "httpx\\.ReadTimeout:\\ The\\ read\\ operation\\ timed\\ out\\ after\\ 30\\ seconds\\ while\\ reading\\ response\\ from\\ 'https://api\\.example\\.com/v1/large\\-data'",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The server is taking too long to send the response data, possibly due to large payload or slow network.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器发送响应数据时间过长，可能是由于负载过大或网络缓慢。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Reducing the timeout value to force faster failures",
      "why_fails": "A shorter timeout does not help retrieve the data; it only fails faster.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using stream=False (default) without adjustment",
      "why_fails": "The default behavior still waits for the entire response; streaming is needed.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase the read timeout value",
      "success_rate": 0.85,
      "how": "client = httpx.Client(timeout=httpx.Timeout(60.0, read=120.0))\nresponse = client.get('https://api.example.com/v1/large-data')",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use streaming to process data incrementally",
      "success_rate": 0.9,
      "how": "with httpx.stream('GET', 'https://api.example.com/v1/large-data') as response:\n    for chunk in response.iter_bytes():\n        process(chunk)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}