-
Notifications
You must be signed in to change notification settings - Fork 905
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
Authorization issues are not loud and clear #704
Comments
Can anyone please help me to get some sort of exception/error when a client is not authorized for an action with KAfka broker? I am unable to figure it out. |
Can somebody please help on how to get correct authorization error? |
Can you please provide the version of the client you are using along with your client configuration. Specifically I'm curious if you have an Thanks, |
Same issue here. self.producer.poll(0)
def delivery_report(err, msg):
""" Called once for each message produced to indicate delivery result.
Triggered by poll() or flush(). """
if err is not None:
print('Message delivery failed: {}'.format(err))
else:
print('Message delivered to {} [{}]'.format(msg.topic(), msg.partition()))
serialized = self.serializer.dumps(event)
self.producer.produce(
self.kafka_topic_name, serialized.encode("utf-8"), on_delivery=delivery_report
) In this code callback fires when message successfully delivered and do not triggers if I'am trying to write to topic without access |
@astoliarov The next version, v1.6.0, will provide improved authentication error reporting. |
@edenhill Thanks, maybe you can tell me when to wait for the new version? |
We're aiming for october. |
Or january, whichever comes first |
Description
I am not getting any authorization error when I am using ACL based authentication in my Kafka broker and my python client code is authenticated via kerberos. Should I get TOPIC_AUTHORIZATION_ERROR?
How to reproduce
Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
):{...}
'debug': '..'
as necessary)The text was updated successfully, but these errors were encountered: