You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dpkp
changed the title
Versions since 2.1.3 do not work with Azure Event Hubs any longer
check_version() fails on Azure Event Hubs since 2.1.3
Apr 29, 2025
Versions since 2.1.3 do not work with Azure Event Hubs any longer.
This is because of this commit: https://github.com/dpkp/kafka-python/pull/2558/files
Issue is with
self._api_versions_idx = 4
Setting this to 2 (as it previously was) fixes the problem.
It looks like Azure Event Hubs automatically breaks the connection as soon as it receives a payload with this version.
Suggestion: Add some configuration parameter to set the default _api_versions_idx
The text was updated successfully, but these errors were encountered: