{
  "id": "go/deadline-exceeded-http-client",
  "signature": "net/http: request canceled (Client.Timeout exceeded while awaiting headers)",
  "signature_zh": "net/http: 请求已取消（等待标头时客户端超时已超时）",
  "regex": "net/http: request canceled \\(Client\\.Timeout exceeded while awaiting headers\\)",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "HTTP client request timed out because the server took longer than the configured Timeout or context deadline to send response headers.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP客户端请求超时，因为服务器发送响应标头的时间超过了配置的超时时间或上下文截止时间。",
  "versions": [
    {
      "version": "Go 1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Go 1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Go 1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This masks the underlying issue; if the server is slow or misconfigured, the request still fails eventually or blocks resources.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Retrying without backoff can overwhelm the server and cause cascading failures.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set a reasonable Timeout on the http.Client and use a context with deadline for the request",
      "success_rate": 0.85,
      "how": "Set a reasonable Timeout on the http.Client and use a context with deadline for the request",
      "condition": "",
      "sources": []
    },
    {
      "action": "Implement retry logic with exponential backoff and jitter for transient network issues",
      "success_rate": 0.9,
      "how": "Implement retry logic with exponential backoff and jitter for transient network issues",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set a reasonable Timeout on the http.Client and use a context with deadline for the request",
    "Implement retry logic with exponential backoff and jitter for transient network issues"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pkg.go.dev/net/http#Client",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-04-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}