{
  "id": "go/grpc-code-unavailable-lb-policy",
  "signature": "rpc error: code = Unavailable desc = last resolver error: produced zero addresses",
  "signature_zh": "rpc 错误：代码 = Unavailable，描述 = 最后的解析器错误：产生了零个地址",
  "regex": "rpc\\ error:\\ code\\ =\\ Unavailable\\ desc\\ =\\ last\\ resolver\\ error:\\ produced\\ zero\\ addresses",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The name resolver returned no addresses. Common with DNS-based targets (dns:///) when the hostname doesn't resolve, or with custom resolvers returning empty updates.",
  "root_cause_type": "generic",
  "root_cause_zh": "名称解析器返回了零个地址。常见于基于 DNS 的目标（dns:///）主机名无法解析，或自定义解析器返回空更新。",
  "versions": [
    {
      "version": "1.50+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Bypasses load balancing and breaks TLS SNI/hostname verification.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "No addresses will ever appear if DNS is broken; waiting longer doesn't help.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Verify the target scheme and hostname resolve. Use passthrough for a literal address:\nconn, _ := grpc.NewClient(\"passthrough:///10.0.0.5:50051\", grpc.WithTransportCredentials(insecure.NewCredentials()))\nOr fix DNS: `nslookup myservice.default.svc.cluster.local`",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Register a custom resolver that logs address updates:\nresolver.Register(&myResolver{})",
      "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": "2024-11-07",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}