{
  "id": "go/io-reader-error",
  "signature": "read tcp 127.0.0.1:8080->127.0.0.1:5000: read: connection reset by peer",
  "signature_zh": "读取 tcp 127.0.0.1:8080->127.0.0.1:5000: 读取：对端重置连接",
  "regex": "read\\ tcp\\ 127\\.0\\.0\\.1:8080\\->127\\.0\\.0\\.1:5000:\\ read:\\ connection\\ reset\\ by\\ peer",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The remote peer forcibly closed the connection during a read operation, causing an io.Read error.",
  "root_cause_type": "generic",
  "root_cause_zh": "远程对端在读取操作期间强制关闭连接，导致 io.Read 错误。",
  "versions": [
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Connection is already closed, retry won't work",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Leads to incomplete data",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.7,
      "how": "if netErr, ok := err.(net.Error); ok && netErr.Timeout() { /* handle timeout */ }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Re-establish the connection on error",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-03-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}