{
  "id": "python/aiohttp-request-timeout",
  "signature": "asyncio.exceptions.TimeoutError: Request timed out after 5 seconds",
  "signature_zh": "asyncio异常：请求在5秒后超时",
  "regex": "asyncio\\.exceptions\\.TimeoutError:\\ Request\\ timed\\ out\\ after\\ 5\\ seconds",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Aiohttp request exceeds the configured timeout, often due to slow network or server.",
  "root_cause_type": "generic",
  "root_cause_zh": "aiohttp请求超过配置的超时时间，通常是由于网络或服务器缓慢。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Masks the problem and may hang indefinitely; not scalable.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Doesn't affect the request timeout; only delays execution.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "timeout = aiohttp.ClientTimeout(total=10); async with session.get(url, timeout=timeout) as resp:",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "await asyncio.wait_for(session.get(url), timeout=10)",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}