{
  "id": "flutter/network-error-http-request-timeout",
  "signature": "SocketException: OS Error: Connection timed out, errno = 110",
  "signature_zh": "套接字异常：操作系统错误：连接超时，错误码 = 110",
  "regex": "SocketException: OS Error: Connection timed out, errno = 110",
  "domain": "flutter",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "An HTTP request made by the app timed out because the server did not respond within the specified timeout duration, often due to network latency, server overload, or incorrect URL.",
  "root_cause_type": "generic",
  "root_cause_zh": "应用发出的 HTTP 请求超时，因为服务器在指定的超时时间内未响应，通常是由于网络延迟、服务器过载或 URL 错误。",
  "versions": [
    {
      "version": "flutter 3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "flutter 3.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "dart 3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "http 1.1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "dio 5.4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increasing the timeout to an extremely high value (e.g., 5 minutes) without addressing the server issue",
      "why_fails": "Maskes the problem; users experience long waits and the app may still fail if the server is down.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Retrying the same request indefinitely without exponential backoff",
      "why_fails": "Continuously hitting the server can worsen the overload and drain battery/data.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Implement a retry mechanism with exponential backoff using a package like 'retry' or custom logic. Also, check the URL and server status.",
      "success_rate": 0.85,
      "how": "Implement a retry mechanism with exponential backoff using a package like 'retry' or custom logic. Also, check the URL and server status.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set a reasonable timeout on the HTTP client (e.g., 10-15 seconds) and handle the timeout gracefully by showing a user-friendly error message with an option to retry.",
      "success_rate": 0.9,
      "how": "Set a reasonable timeout on the HTTP client (e.g., 10-15 seconds) and handle the timeout gracefully by showing a user-friendly error message with an option to retry.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "使用 'retry' 包或自定义逻辑实现带有指数退避的重试机制。同时检查 URL 和服务器状态。",
    "在 HTTP 客户端上设置合理的超时时间（例如 10-15 秒），并优雅地处理超时，向用户显示友好的错误消息并提供重试选项。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://api.dart.dev/stable/dart-io/SocketException-class.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.87,
  "resolvable": "true",
  "first_seen": "2023-04-18",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}