{
  "id": "go/grpc-not-found-service-method",
  "signature": "rpc error: code = NotFound desc = resource not found: order 998877",
  "signature_zh": "rpc 错误：code = NotFound desc = 资源未找到：订单 998877",
  "regex": "rpc\\ error:\\ code\\ =\\ NotFound\\ desc\\ =\\ resource\\ not\\ found:\\ order\\ 998877",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The requested resource does not exist on the server. NotFound is a legitimate application-level response, but it is frequently confused with Unimplemented when the method itself is missing.",
  "root_cause_type": "generic",
  "root_cause_zh": "请求的资源在服务器上不存在。NotFound 是合法的应用层响应，但常与 Unimplemented 混淆——后者表示方法本身缺失。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Without an explicit wait/backoff and an expectation of eventual creation, retrying a NotFound just repeats the same lookup.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Many NotFound responses are expected (deleted resources, bad user input); paging on-call for them causes alert fatigue.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Handle NotFound as a normal application outcome and map it to your domain error:\n\nresp, err := client.GetOrder(ctx, &pb.GetReq{Id: id})\nif status.Code(err) == codes.NotFound {\n    return nil, ErrOrderNotFound\n}",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "When eventual creation is expected, poll with a bounded retry and backoff:\n\nbackoff := time.Second\nfor i := 0; i < 10; i++ {\n    _, err := client.Get(ctx, req)\n    if status.Code(err) != codes.NotFound { return err }\n    time.Sleep(backoff); backoff *= 2\n}",
      "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": "2025-02-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}