Code: Alles auswählen
AttributeError: 'NoneType' object has no attribute 'url'
return "Die Verbindung zum Server {} ist fehlgeschlagen. Überprüfe Adresse und Netzwerk.".format(e.request.url)
File "/var/www/html/openWB/packages/helpermodules/exceptions/requests.py", line 8, in handle_connection_error
result = entry.handler(exception)
File "/var/www/html/openWB/packages/helpermodules/exceptions/registry.py", line 31, in translate_exception
return exceptions.get_default_exception_registry().translate_exception(exception)
File "/var/www/html/openWB/packages/modules/common/fault_state.py", line 88, in from_exception
fault_state = FaultState.from_exception(exception)
File "/var/www/html/openWB/packages/modules/common/component_context.py", line 78, in override_subcomponent_state
MultiComponentUpdateContext.override_subcomponent_state(self.__component_info, exception, self.update_always)
File "/var/www/html/openWB/packages/modules/common/component_context.py", line 28, in __exit__
self.components[component].update()
File "/var/www/html/openWB/packages/modules/devices/kostal_piko/device.py", line 62, in update
dev.update()
File "/var/www/html/openWB/packages/modules/devices/kostal_piko/device.py", line 100, in read_legacy
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
run_using_positional_cli_args(read_legacy, argv)
File "/var/www/html/openWB/packages/modules/devices/kostal_piko/device.py", line 133, in main
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.178.127', port=80): Read timed out.
raise ConnectionError(e)
File "/usr/lib/python3/dist-packages/requests/models.py", line 710, in generate
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "/usr/lib/python3/dist-packages/requests/models.py", line 781, in content
if not self.content:
File "/usr/lib/python3/dist-packages/requests/models.py", line 805, in text
session.hooks['response'].append(lambda r, *args, **kwargs: log.debug("Get-Response: " + r.text))
File "/var/www/html/openWB/packages/modules/common/req.py", line 11, in <lambda>
_hook_data = hook(hook_data, **kwargs)
File "/usr/lib/python3/dist-packages/requests/hooks.py", line 31, in dispatch_hook
r = dispatch_hook('response', hooks, r, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 615, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 488, in request
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 501, in get
resp = req.get_http_session().get('http://'+self.ip_address+'/api/dxs.json', params=params, timeout=3).json()
File "/var/www/html/openWB/packages/modules/devices/kostal_piko/inverter.py", line 29, in get_values
power, exported = self.get_values()
File "/var/www/html/openWB/packages/modules/devices/kostal_piko/inverter.py", line 38, in update
self.components[component].update()
File "/var/www/html/openWB/packages/modules/devices/kostal_piko/device.py", line 62, in update
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.178.127', port=80): Read timed out.
raise ReadTimeoutError(self._pool, None, "Read timed out.")
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/response.py", line 446, in _error_catcher
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/response.py", line 544, in read
data = self.read(amt=amt, decode_content=decode_content)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/response.py", line 579, in stream
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "/usr/lib/python3/dist-packages/requests/models.py", line 703, in generate
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
socket.timeout: timed out
return self._sock.recv_into(b)
File "/usr/lib/python3.5/socket.py", line 576, in readinto
n = self.fp.readinto(b)
File "/usr/lib/python3.5/http/client.py", line 502, in readinto
n = self.readinto(b)
File "/usr/lib/python3.5/http/client.py", line 462, in read
data = self._fp.read(amt) if not fp_closed else b""
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/response.py", line 522, in read
yield
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/response.py", line 441, in _error_catcher
Traceback (most recent call last):
2023-01-17 21:31:15: PID: 2723: legacy run server: Unhandled exception
Ich habe einen KOSTAL Energy Meter, welches als Strombezugsmodul "Kostal Energy Meter oder TQ EM410" konfiguriert ist. Es ist unter der angegebenen IP erreichbar und funktioniert normal. Auch openWB kann es offensichtlich erreichen, denn daher bezieht es ja die Werte für den Graphen, und der zeigt alles richtig an.