{
  "id": "go/http-client-timeout",
  "signature": "context deadline exceeded (Client.Timeout exceeded while awaiting headers)",
  "signature_zh": "上下文截止时间已超过（客户端超时等待响应头）",
  "regex": "context\\ deadline\\ exceeded\\ \\(Client\\.Timeout\\ exceeded\\ while\\ awaiting\\ headers\\)",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The HTTP client timed out while waiting for the server to respond, due to a slow server or network issues.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP 客户端在等待服务器响应时超时，原因是服务器响应慢或网络问题。",
  "versions": [
    {
      "version": "1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "May cause the program to hang indefinitely",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Server may still be slow, repeated timeouts",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "client := &http.Client{Timeout: 10 * time.Second}",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use context.WithTimeout to set a deadline for the request",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-04-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}