{
  "id": "go/io-reader-returns-zero-bytes-no-error",
  "signature": "error: read: unexpected EOF (0 bytes read)",
  "signature_zh": "错误：读取：意外的EOF（读取了0字节）",
  "regex": "error:\\ read:\\ unexpected\\ EOF\\ \\(0\\ bytes\\ read\\)",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "An I/O read returned 0 bytes without an error, which is unexpected and may indicate a bug in the reader implementation.",
  "root_cause_type": "generic",
  "root_cause_zh": "I/O读取返回0字节但没有错误，这是意外的，可能表示读取器实现中的错误。",
  "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": "Assuming it's a transient error",
      "why_fails": "May cause infinite loop if retried; check for zero-length reads.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check for zero-length reads and treat as error",
      "success_rate": 0.9,
      "how": "n, err := reader.Read(buf)\nif n == 0 && err == nil { return errors.New(\"zero-length read\") }",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}