-
Notifications
You must be signed in to change notification settings - Fork 8
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
Typo in AlertConsumer code documentation #101
Comments
Thanks for spotting the mistake! I will correct it asap. |
Well actually the doc is correct -- fink-client/fink_client/consumer.py Lines 263 to 267 in 4550eca
It is somehow unfortunate that the names are not exactly the same, but the reason behind is that by using I've made the documentation more explicit, see #102 |
I did pass in a dictionary with "username" and "password" keys but got an error. |
This is surprising. What error exactly did you get? Could you paste the traceback here? I just tried the following snippet with my credentials, and it worked: from fink_client.consumer import AlertConsumer
myconfig = {
'username': '__my_username__',
'bootstrap.servers': '__servers__',
'group_id': '__my_group_id__'
}
topics = ["fink_early_sn_candidates_ztf"]
# Instantiate a consumer
consumer = AlertConsumer(topics, myconfig)
# Poll the servers
topic, alert, key = consumer.poll(maxtimeout=5)
print(alert) |
|
|
The problem is the fink-client/fink_client/consumer.py Lines 263 to 267 in 4550eca
I used to not pass it when unset, but I will fix the code as well such that passing None will initialise the consumer as well. |
Hum, actually there might be a breach -- let me check things on the server side... |
You are much more computer savvy than I am. But I did notice a change as some point where |
@AlexGKim thanks for putting your finger on a larger problem -- I found the authentication mechanism of the cluster was not properly configured ( I will fix it, but later. Having said that, this does not prevent data to flow normally, but you will authenticate with the |
Two of the config keys given in the AlertConsumer code documentation are incorrect
fink-client/fink_client/consumer.py
Line 42 in 700f579
username -> sasl.username
password -> sasl.password
The text was updated successfully, but these errors were encountered: