{
  "id": "go/grpc-deadline-exceeded-long-running",
  "signature": "rpc error: code = DeadlineExceeded desc = context deadline exceeded",
  "signature_zh": "rpc 错误：代码 = DeadlineExceeded 描述 = 上下文截止日期已超过",
  "regex": "rpc\\ error:\\ code\\ =\\ DeadlineExceeded\\ desc\\ =\\ context\\ deadline\\ exceeded",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The client set a deadline (via context.WithTimeout or context.WithDeadline) for the RPC, but the server took longer to respond than the allowed time.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端为 RPC 设置了截止日期（通过 context.WithTimeout 或 context.WithDeadline），但服务器响应时间超过了允许的时间。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This may hide the underlying performance issue and cause long hangs.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The server may have partially processed the request, leading to inconsistency.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.7,
      "how": "Profile the handler and reduce database queries or external calls.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second); defer cancel(); for i := 0; i < 3; i++ { err := client.Call(ctx, ...); if err == nil { break }; time.Sleep(time.Duration(i)*time.Second) }",
      "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-07-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}