{
  "id": "python/django-request-timeout",
  "signature": "requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /data (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at ...>, 'Connection to api.example.com timed out.'))",
  "signature_zh": "请求连接超时：HTTPSConnectionPool(host='api.example.com', port=443)：超过最大重试次数，url：/data（由连接超时错误引起）",
  "regex": "requests\\.exceptions\\.ConnectTimeout:\\ HTTPSConnectionPool\\(host='api\\.example\\.com',\\ port=443\\):\\ Max\\ retries\\ exceeded\\ with\\ url:\\ /data\\ \\(Caused\\ by\\ ConnectTimeoutError\\(<urllib3\\.connection\\.HTTPSConnection\\ object\\ at\\ \\.\\.\\.>,\\ 'Connection\\ to\\ api\\.example\\.com\\ timed\\ out\\.'\\)\\)",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "External API call from Django view takes too long to respond or network is unreachable.",
  "root_cause_type": "generic",
  "root_cause_zh": "Django视图中调用的外部API响应时间过长或网络不可达。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Doesn't solve underlying network issue; delays user response.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Can hang the server and exhaust resources.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use a shorter timeout and handle gracefully: requests.get(url, timeout=5) and catch exceptions.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Implement retries with exponential backoff using urllib3 Retry.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}