Hallo,
ich verwende zum Ausschalten meiner VU Box die Enigma HTTP API (https://dream.reichholf.net/wiki/Enigma2:WebInterface).
Das klappt auch alles wunderbar. Aber ich erhalte im Log folgenden Fehler:
Klar, es kommt halt keine Antwort mehr, wenn ich die Box remote ausmache. Aber kann ich diesen Fehler irgendwie umgehen bzw. abfangen?
Gruß
Thomas
ich verwende zum Ausschalten meiner VU Box die Enigma HTTP API (https://dream.reichholf.net/wiki/Enigma2:WebInterface).
Code:
cd.tools.fetch_url("http://192.168.X.X/web/powerstate?newstate=1")
Code:
2017-02-09 00:00:00 ERROR Machines Remote end closed connection without response
Traceback (most recent call last):
File "/mfs/core/lib/config.py", line 260, in __call__
return eval(self.bytecode, self.locals)
File "<string>", line 1, in <module>
File "/mfs/core/lib/tools.py", line 70, in fetch_url
resp = conn.getresponse()
File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.6/http/client.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
Gruß
Thomas


Kommentar