kbr / fritzconnection

Python-Tool to communicate with the AVM Fritz!Box by the TR-064 protocol and the AHA-HTTP-Interface
MIT License
304 stars 59 forks source link

Can not get VoIP Clients by ID #89

Closed chrisherzberg closed 3 years ago

chrisherzberg commented 3 years ago

I tried to fetch the VoIP clients by ID but got an error message from fritz.

`arguments = {'NewX_AVM-DE_ClientId ': 1}

pbl = conn.call_action('X_VoIP1', 'X_AVM-DE_GetClientByClientId', arguments=arguments)`

Traceback (most recent call last): File "C:/Users/Chris/test_output.py", line 15, in pbl = conn.call_action('X_VoIP1', 'X_AVM-DE_GetClientByClientId', arguments=arguments) File "C:/Users/Chris\fritzconnection\core\fritzconnection.py", line 227, in call_action return self.soaper.execute(service, action_name, arguments) File "C:/Users/Chris\fritzconnection\core\soaper.py", line 238, in execute return handle_response(response) File "C:/Users/Chris\fritzconnection\core\soaper.py", line 222, in handle_response raise_fritzconnection_error(response) File "C:/Users/Chris\fritzconnection\core\soaper.py", line 147, in raise_fritzconnection_error raise exception(message) fritzconnection.core.exceptions.FritzLookUpError: 'UPnPError: \nerrorCode: 714\nerrorDescription: NoSuchEntryInArray'

Any Ideas?

kbr commented 3 years ago

This is an error message from the box that there is no such id.