{
  "id": "python/starlette-async-timeout",
  "signature": "asyncio.exceptions.TimeoutError: The operation timed out",
  "signature_zh": "异步超时错误：操作超时",
  "regex": "asyncio\\.exceptions\\.TimeoutError:\\ The\\ operation\\ timed\\ out",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "An async operation, such as a database query or HTTP request, took longer than the configured timeout.",
  "root_cause_type": "generic",
  "root_cause_zh": "异步操作（如数据库查询或 HTTP 请求）耗时超过配置的超时时间。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increasing timeout to an extremely high value",
      "why_fails": "May mask underlying performance issues.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignoring the error and retrying infinitely",
      "why_fails": "Could lead to resource exhaustion.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set a reasonable timeout and handle it gracefully",
      "success_rate": 0.9,
      "how": "import asyncio\ntry:\n    async with asyncio.timeout(10):\n        result = await some_operation()\nexcept asyncio.TimeoutError:\n    return {'error': 'timeout'}",
      "condition": "",
      "sources": []
    },
    {
      "action": "Optimize the slow operation",
      "success_rate": 0.8,
      "how": "Profile and optimize database queries or use caching.",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2025-02-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}