-
Notifications
You must be signed in to change notification settings - Fork 70
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
I can't get the values #51
Comments
The events don't go to the response, you need to add a listener to collect them This is the response:
This
and this:
are events |
try something like that: def event_listener(event):
print(event)
# add the event listener before send the action
client.add_event_listener(event_listener)
future = client.send_action(action)
print(future.response) |
But this time you sent the action twice, in the lines 27 and 34 |
The response returns before the events, so it really can happen, maybe your process was closed before receiving the events I have one concern with your while, in the way that you did I imagine that it is consuming a lot of CPU time, I would try to use a sleep inside the while Is there any event that ends the event stream? |
Hello, I started sending data after adding a callback))). tell me how to get out of the endless loop try? |
try putting the parameter timeout=None in the client.login line like this: |
Thanks SOOOOOOO much - this was driving me nuts, and such a simple solution :-) |
hi, in the telenet I successfully get the queue state, the same thing in python comes empty. what's wrong?

client = AMIClient(address='чччччч',port=5038) client.login(username='python',secret='5bdadc4820df193691d5848b8cb566de') action = SimpleAction( 'QueueStatus',) resp1=client.send_action(action) response3 = resp1.response print(response3)
The text was updated successfully, but these errors were encountered: