{
  "id": "nginx/upstream-sent-http-1-0-response-while-reading-response-header",
  "signature": "upstream sent HTTP/1.0 response while reading response header from upstream, client: 10.0.0.5",
  "signature_zh": "上游在读取响应头时发送了 HTTP/1.0 响应，客户端：10.0.0.5",
  "regex": "upstream sent HTTP/1\\.0 response while reading response header from upstream",
  "domain": "nginx",
  "category": "protocol_error",
  "subcategory": null,
  "root_cause": "Upstream server returns HTTP/1.0 response when nginx expects HTTP/1.1 or HTTP/2, causing header parsing failure.",
  "root_cause_type": "generic",
  "root_cause_zh": "上游服务器返回 HTTP/1.0 响应，而 nginx 期望 HTTP/1.1 或 HTTP/2，导致头部解析失败。",
  "versions": [
    {
      "version": "nginx 1.24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "nginx 1.22.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "nginx 1.20.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Buffer size is not the issue; the protocol version mismatch is unrelated to buffer allocation.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This forces HTTP/1.0 which may cause other issues; the real fix is to upgrade the upstream.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set 'proxy_http_version 1.1;' in the location block and ensure upstream supports HTTP/1.1. Example: location /api { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Connection ''; }",
      "success_rate": 0.85,
      "how": "Set 'proxy_http_version 1.1;' in the location block and ensure upstream supports HTTP/1.1. Example: location /api { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Connection ''; }",
      "condition": "",
      "sources": []
    },
    {
      "action": "If upstream cannot be changed, add 'proxy_set_header Connection close;' to force connection closure after each request.",
      "success_rate": 0.75,
      "how": "If upstream cannot be changed, add 'proxy_set_header Connection close;' to force connection closure after each request.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set 'proxy_http_version 1.1;' in the location block and ensure upstream supports HTTP/1.1. Example: location /api { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Connection ''; }",
    "If upstream cannot be changed, add 'proxy_set_header Connection close;' to force connection closure after each request."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_http_version",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2023-11-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}