# org.apache.kafka.common.errors.UnsupportedVersionException: The broker does not support the API version

- **ID:** `kafka/unsupported-version-api`
- **Domain:** kafka
- **Category:** protocol_error
- **Verification:** ai_generated
- **Fix Rate:** 85%

## Root Cause

Client and broker have incompatible API versions, often due to mismatched Kafka client library and broker versions.

## Workarounds

1. **Upgrade the Kafka client library to match the broker version, e.g., in Maven: <kafka.version>3.7.0</kafka.version>** (90% success)
   ```
   Upgrade the Kafka client library to match the broker version, e.g., in Maven: <kafka.version>3.7.0</kafka.version>
   ```
2. **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");** (75% success)
   ```
   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");
   ```

## Dead Ends

- **** — Downgrading the broker version often introduces security vulnerabilities and is not recommended. (70% fail)
- **** — Manually setting API versions in client config can lead to further incompatibilities if not done carefully. (80% fail)
