{
  "id": "kafka/unsupported-version-api",
  "signature": "org.apache.kafka.common.errors.UnsupportedVersionException: The broker does not support the API version",
  "signature_zh": "不支持的版本异常：代理不支持该API版本",
  "regex": "UnsupportedVersionException.*does not support the API version",
  "domain": "kafka",
  "category": "protocol_error",
  "subcategory": null,
  "root_cause": "Client and broker have incompatible API versions, often due to mismatched Kafka client library and broker versions.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端和代理的API版本不兼容，通常是由于Kafka客户端库和代理版本不匹配。",
  "versions": [],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Downgrading the broker version often introduces security vulnerabilities and is not recommended.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Manually setting API versions in client config can lead to further incompatibilities if not done carefully.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade the Kafka client library to match the broker version, e.g., in Maven: <kafka.version>3.7.0</kafka.version>",
      "success_rate": 0.9,
      "how": "Upgrade the Kafka client library to match the broker version, e.g., in Maven: <kafka.version>3.7.0</kafka.version>",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set api.version.request to false in producer/consumer config to force client to use a specific version, e.g., props.put(\"api.version.request\", \"false\");",
      "success_rate": 0.75,
      "how": "Set api.version.request to false in producer/consumer config to force client to use a specific version, e.g., props.put(\"api.version.request\", \"false\");",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "升级Kafka客户端库以匹配代理版本，例如在Maven中：<kafka.version>3.7.0</kafka.version>",
    "在生产/消费者配置中将 api.version.request 设置为 false，以强制客户端使用特定版本，例如 props.put(\"api.version.request\", \"false\");"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kafka.apache.org/documentation/#upgrade",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-01-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}