kafka: Error reading field 'brokers': Error reading array of size 65535,

created at 03-23-2022 views: 10


kafka consumer exception:

Error reading field 'brokers': Error reading array of size 65535

reason and solution

This problem is that the client version is higher than the server version... There are no other situations that have caused it so far.

Check the version information of kafka configured in mvn, the version information on the corresponding service, and downgrade the version if there is any discrepancy

If you use kafka configured by spring boot, you can refer to the corresponding version

mvn kafka
1.0.5.RELEASE 0.9.0
1.1.1.RELEASE 0.10.0

The above two mvn versions are the most used in mvn's sourced configuration

Hope that helps you troubleshoot errors.

created at:03-23-2022
edited at: 03-23-2022: