Actions
Bug #3939
closedHTSP Api calls with Python HTSPClient
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
HTSP
Target version:
-
Start date:
2016-08-16
Due date:
% Done:
100%
Estimated time:
Found in version:
4.1-2163
Affected Versions:
Description
Hi, i'm trying to access some api calls with the python HTSPClient:
With this code I get a response:
>>> htsp = HTSPClient((hostname, 9982))
>>> msg = htsp.hello()
>>> htsp.send('api', {'path': 'status/inputs'})
>>> htsp.recv()
{'noaccess': 1}
But with authentication it returns nothing and TVH hangs up and needs to be restarted:
>>> htsp = HTSPClient((hostname, 9982))
>>> msg = htsp.hello()
>>> htsp.authenticate(username, password)
>>> htsp.send('api', {'path': 'status/inputs'})
>>> htsp.recv()
All other methods described in Wiki/Htsp works as expected.
Actions