{
  "id": "go/grpc-internal-error-stream-closed",
  "signature": "rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: PROTOCOL_ERROR",
  "signature_zh": "rpc错误：代码=内部错误 描述=流被RST_STREAM终止，错误代码：PROTOCOL_ERROR",
  "regex": "rpc\\ error:\\ code\\ =\\ Internal\\ desc\\ =\\ stream\\ terminated\\ by\\ RST_STREAM\\ with\\ error\\ code:\\ PROTOCOL_ERROR",
  "domain": "go",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A gRPC stream was reset due to a protocol error, often caused by malformed frames or mismatched flow control.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC流因协议错误被重置，通常是由于格式错误的帧或流控制不匹配。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restart the client and server without investigating the cause.",
      "why_fails": "The underlying protocol issue may persist if not fixed.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignore the error and continue streaming.",
      "why_fails": "The stream is already terminated; further sends will fail.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check for network proxies or load balancers that may interfere with HTTP/2.",
      "success_rate": 0.7,
      "how": "Ensure no intermediate proxies modify gRPC frames. Use direct connections if possible.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Update gRPC and HTTP/2 libraries to the latest versions to fix known protocol bugs.",
      "success_rate": 0.85,
      "how": "go get google.golang.org/grpc@latest\nAnd update golang.org/x/net to latest.",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2025-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}