{
  "id": "go/grpc-unauthenticated-metadata",
  "signature": "rpc error: code = Unauthenticated desc = missing or invalid authentication token",
  "signature_zh": "rpc 错误：代码 = Unauthenticated 描述 = 缺少或无效的身份验证令牌",
  "regex": "rpc\\ error:\\ code\\ =\\ Unauthenticated\\ desc\\ =\\ missing\\ or\\ invalid\\ authentication\\ token",
  "domain": "go",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The gRPC request does not include the required authentication metadata (e.g., an authorization token) or the token is invalid.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC 请求未包含所需的身份验证元数据（例如授权令牌），或者令牌无效。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This weakens security and is not advisable in production.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The server will still reject it.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "md := metadata.Pairs(\"authorization\", \"Bearer \"+token); ctx := metadata.NewOutgoingContext(context.Background(), md); resp, err := client.Call(ctx, ...)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Implement a token provider that obtains and caches valid tokens.",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}