{
  "id": "go/grpc-unavailable-connection-reset",
  "signature": "rpc error: code = Unavailable desc = connection error: desc = \"transport: error while dialing: dial tcp 10.0.0.1:8080: connect: connection reset by peer\"",
  "signature_zh": "rpc错误：代码=不可用 描述=连接错误：描述=\"传输：拨号时出错：拨号tcp 10.0.0.1:8080：连接被对端重置\"",
  "regex": "rpc\\ error:\\ code\\ =\\ Unavailable\\ desc\\ =\\ connection\\ error:\\ desc\\ =\\ \"transport:\\ error\\ while\\ dialing:\\ dial\\ tcp\\ 10\\.0\\.0\\.1:8080:\\ connect:\\ connection\\ reset\\ by\\ peer\"",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The TCP connection was reset by the remote peer, often due to server crash, firewall, or network issues.",
  "root_cause_type": "generic",
  "root_cause_zh": "TCP连接被远程对端重置，通常是由于服务器崩溃、防火墙或网络问题。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Retry the connection immediately without any delay.",
      "why_fails": "If the server is down or the network is unstable, immediate retry will likely fail again.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignore the error and assume the connection is fine.",
      "why_fails": "The connection is broken; continuing will result in more errors.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Implement retry with exponential backoff and jitter.",
      "success_rate": 0.85,
      "how": "for i := 0; i < 5; i++ {\n    conn, err := grpc.Dial(\"10.0.0.1:8080\", grpc.WithInsecure(), grpc.WithBlock())\n    if err == nil { return conn }\n    time.Sleep(time.Duration(100*(1<<i)) * time.Millisecond)\n}",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check server logs and network connectivity.",
      "success_rate": 0.9,
      "how": "Verify server is running: netstat -an | grep 8080. Check firewall rules and network paths.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-01-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}