Project

General

Profile

Actions

Bug #3939

closed

HTSP Api calls with Python HTSPClient

Added by C K almost 9 years ago. Updated almost 9 years ago.

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

Also available in: Atom PDF