Skip to content
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

Api Problem #91

Open
nisutec opened this issue Oct 15, 2019 · 2 comments
Open

Api Problem #91

nisutec opened this issue Oct 15, 2019 · 2 comments

Comments

@nisutec
Copy link

nisutec commented Oct 15, 2019

I will use the quary handler but it not work.
The Code is from the example the clientlist feature works but the servernotifyregister not.

import time
import ts3

with ts3.query.TS3ServerConnection("telnet://serveradmin:(hidden)@(hidden):12233") as ts3conn:
ts3conn.exec_("use", sid=1)
resp = ts3conn.exec_("clientlist")
print("Clients on the server:", resp.parsed)
ts3conn.exec_("servernotifyregister", event="server")
while True:
ts3conn.send_keepalive()

    try:
        event = ts3conn.wait_for_event(timeout=60)
    except ts3.query.TS3TimeoutError:
        pass
    else:
        print(event[0]["reasonid"])
@ZackEndboss
Copy link

I do have the same issue

@ZackEndboss
Copy link

ZackEndboss commented Feb 24, 2021

I do have the same issue

not anymore. Think it happens when i was often restart the code without closing the session.
`
ts3conn.query("servernotifyunregister")

ts3conn.exec_("logout")

ts3conn.close()`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants