-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting ValueError: Invalid file object: None in check_version when connecting #2450
Comments
Enabled logging enabled and increased |
What I'm seeing in the log:
It seems to me the issue comes down to this code: ( Line 1242 in 5bb126b
Even increasing this sleep to 1 or even 10 is not helping, in my local setup. Any ideas as to how to fix this or work around it? |
dgoldenberg-ias
changed the title
Getting ValueError: Invalid file object: None
Getting ValueError: Invalid file object: None in check_version when connecting
Nov 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
kafka-python = "^2.0.2"
python = Python 3.10.15
We're using AWS MSK - Kafka version 3.5.1.
Code
Observations
When I run this code locally, I get the below error. Curiously, when running it from a databricks notebook, I'm not getting the error. Python version there is 3.10.12.
Error stack trace
Specifying the Kafka API version explicitly
Specifying the Kafka API version explicitly:
Same error.
Network?
Seems OK.
Basic socket operations
Used the below code to verify sockets are working fine.
The exception occurs here:
kafka-python/kafka/conn.py
Line 1254 in 5bb126b
in the check_version method.
Any cause or workaround? Thanks.
The text was updated successfully, but these errors were encountered: