{
  "id": "go/net-http-request-body-too-large",
  "signature": "error: http: request body too large",
  "signature_zh": "错误：http：请求体过大",
  "regex": "error:\\ http:\\ request\\ body\\ too\\ large",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The HTTP request body exceeds the server's maximum body size limit, controlled by http.MaxBytesReader.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP请求体超过服务器的最大体大小限制，由http.MaxBytesReader控制。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Setting MaxBytesReader to unlimited",
      "why_fails": "Security risk; always set a limit.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use http.MaxBytesReader to limit request body size",
      "success_rate": 0.95,
      "how": "r.Body = http.MaxBytesReader(w, r.Body, 10<<20) // 10 MB\nif err := json.NewDecoder(r.Body).Decode(&data); err != nil { /* handle */ }",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-05-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}