{
  "id": "python/starlette-request-client-timeout",
  "signature": "asyncio.exceptions.TimeoutError: Request timed out",
  "signature_zh": "异步超时异常：请求超时",
  "regex": "asyncio\\.exceptions\\.TimeoutError:\\ Request\\ timed\\ out",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The server takes longer than the client's timeout to respond, often due to slow database queries or external API calls within the endpoint.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器响应时间超过客户端超时时间，通常因为端点内的数据库查询或外部API调用缓慢。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Increasing client timeout doesn't fix the root cause; the server still processes slowly.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Retrying the request may eventually succeed but is inefficient and can overload the server.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Optimize the endpoint by adding caching, using async database drivers, or offloading heavy tasks to background workers.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Implement server-side timeouts and return a 504 Gateway Timeout if the operation takes too long.",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-03-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}