Code: Alles auswählen
2021-04-30 15:45:08: (6) GeschirrSp manueller Modus aktiviert, keine Regelung
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
raise URLError(err)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
urllib.request.urlopen(url, timeout=5)
File "/var/www/html/openWB/modules/smarthome/http/on.py", line 27, in <module>
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
socket.gaierror: [Errno -2] Name or service not known
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.5/socket.py", line 694, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/http/client.py", line 849, in connect
self.connect()
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
Traceback (most recent call last):
2021-04-30 15:45:08: (6) GeschirrSp angeschaltet. Ueberschussberechnung (1 = mit Speicher, 2 = mit Offset) 1 oncount: 4972
Gut, da funktioniert der Aufruf nicht, würde man am naheliegensden sagen. Aber der liefert sauber eine Null zurück. Zumindest mal, wenn ich den hier lokal auf der Shell aufrufe. Am DNS kann es auch nicht liegen, denn ich habe noch ein Gerät, was genauso definiert ist, und das funktioniert.
Wie komme ich der Sache denn ein bissl mehr auf den Grund?