{
  "id": "go/grpc-internal-unexpected-error",
  "signature": "rpc error: code = Internal desc = unexpected error: runtime error: index out of range",
  "signature_zh": "rpc 错误：代码 = Internal 描述 = 意外错误：运行时错误：索引超出范围",
  "regex": "rpc\\ error:\\ code\\ =\\ Internal\\ desc\\ =\\ unexpected\\ error:\\ runtime\\ error:\\ index\\ out\\ of\\ range",
  "domain": "go",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A panic or runtime error occurred on the server side, causing an internal error.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器端发生恐慌或运行时错误，导致内部错误。",
  "versions": [
    {
      "version": "1.56.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.57.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Retrying the same request without changes.",
      "why_fails": "The server bug will be triggered again.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Blaming the client for sending bad data.",
      "why_fails": "The error is on the server side.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Simply restarting the server.",
      "why_fails": "The bug remains and will occur again.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "grpc_recovery := grpc_middleware.ChainUnaryServer(grpc_recovery.UnaryServerInterceptor())",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Check for index out of range: if i < len(slice) { ... } else { return status.Error(codes.Internal, \"index out of range\") }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use structured logging: log.WithError(err).Error(\"internal error\")",
      "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-10-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}