{
  "id": "go/grpc-load-balancer-no-backends",
  "signature": "rpc error: code = Unavailable desc = name resolver error: produced zero addresses",
  "signature_zh": "rpc错误：代码=不可用 描述=名称解析器错误：产生了零个地址",
  "regex": "rpc\\ error:\\ code\\ =\\ Unavailable\\ desc\\ =\\ name\\ resolver\\ error:\\ produced\\ zero\\ addresses",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The gRPC load balancer resolver returned no backend addresses, often due to DNS failure or service discovery issues.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC负载均衡器解析器未返回后端地址，通常是由于DNS故障或服务发现问题。",
  "versions": [
    {
      "version": "1.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Hardcode a single backend address in the client.",
      "why_fails": "Bypasses load balancing and defeats purpose.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase DNS cache TTL.",
      "why_fails": "Does not fix missing A records.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify DNS resolution for the target hostname.",
      "success_rate": 0.9,
      "how": "nslookup my-service.default.svc.cluster.local",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a custom resolver with fallback addresses.",
      "success_rate": 0.85,
      "how": "resolver := manual.NewBuilderWithScheme(\"myresolver\")\nresolver.InitialState(resolver.State{Addresses: []resolver.Address{{Addr: \"10.0.0.1:50051\"}}})\nconn, _ := grpc.Dial(\"myresolver:///service\", grpc.WithResolvers(resolver))",
      "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": "2024-12-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}