{
  "id": "grpc/invalid-compression-algorithm",
  "signature": "UNIMPLEMENTED: grpc: Unsupported compression algorithm: deflate",
  "signature_zh": "未实现：不支持的压缩算法：deflate",
  "regex": "UNIMPLEMENTED: grpc: Unsupported compression algorithm: \\w+",
  "domain": "grpc",
  "category": "protocol_error",
  "subcategory": null,
  "root_cause": "The client requested a compression algorithm that the server does not support.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端请求了服务器不支持的压缩算法。",
  "versions": [
    {
      "version": "gRPC Python 1.47.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC C++ 1.49.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "gRPC does not support deflate; it only supports gzip, identity, and optionally snappy or zstd.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The server will still reject it because the algorithm is not in its supported list.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "gRPC does not negotiate compression; mismatch causes immediate failure.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Change the client to use gzip compression. Example: `channel = grpc.insecure_channel('target', options=[('grpc.default_compression_algorithm', grpc.Compression.Gzip)])`",
      "success_rate": 0.9,
      "how": "Change the client to use gzip compression. Example: `channel = grpc.insecure_channel('target', options=[('grpc.default_compression_algorithm', grpc.Compression.Gzip)])`",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using custom compression, register it on both sides via `grpc.Compression` API.",
      "success_rate": 0.7,
      "how": "If using custom compression, register it on both sides via `grpc.Compression` API.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Change the client to use gzip compression. Example: `channel = grpc.insecure_channel('target', options=[('grpc.default_compression_algorithm', grpc.Compression.Gzip)])`",
    "If using custom compression, register it on both sides via `grpc.Compression` API."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://grpc.io/docs/guides/compression/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}