{
  "id": "go/grpc-internal-http2-frame-error",
  "signature": "rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: PROTOCOL_ERROR",
  "signature_zh": "rpc 错误：代码 = Internal，描述 = 流被 RST_STREAM 终止，错误码：PROTOCOL_ERROR",
  "regex": "rpc\\ error:\\ code\\ =\\ Internal\\ desc\\ =\\ stream\\ terminated\\ by\\ RST_STREAM\\ with\\ error\\ code:\\ PROTOCOL_ERROR",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "HTTP/2 framing violation between client and server. Often caused by an intermediate proxy (nginx/Envoy) that doesn't support gRPC, or a mismatched h2c/TLS configuration.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端与服务端之间的 HTTP/2 帧协议违规。常见于中间代理（nginx/Envoy）不支持 gRPC，或 h2c/TLS 配置不一致。",
  "versions": [
    {
      "version": "1.50+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "PROTOCOL_ERROR is a framing issue, not a stream-count limit.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Keepalives don't fix malformed HTTP/2 frames; aggressive pings may trigger GOAWAY from servers.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Configure the proxy for gRPC (HTTP/2 end-to-end). For nginx:\nlocation /pb.UserService/ {\n  grpc_pass grpc://backend:50051;\n  grpc_read_timeout 300s;\n}",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Bypass the proxy entirely to isolate: dial the gRPC server directly from the client host and confirm the call succeeds.",
      "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-08-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}