Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error doing job: Task exception was never retrieved #67

Open
SteGe88 opened this issue Aug 1, 2022 · 0 comments
Open

Error doing job: Task exception was never retrieved #67

SteGe88 opened this issue Aug 1, 2022 · 0 comments

Comments

@SteGe88
Copy link

SteGe88 commented Aug 1, 2022

On my Home-Assistant instance I got frequently the message in the logging: Task exception was never retrieved, with a bunch of python traceback messages which are not making any sense for me :-)

I have had also the debug logging enabled, but there are no hooks to the problem as far as I can see. I have three p2000 sensors in my config (see bellow) and when I enable just one of the three (doesn't matter which one0 I got the same message.

Config:

- platform: p2000
  name: p2000 Informatiemanager
  #regios: 9
  #disciplines: 1,2,3,4
  scan_interval: 20
  capcodes: 709540,709541,709542
  icon: mdi:fire-truck
  nolocation: true

- platform: p2000
  name: p2000 Informatiemanager GRIP
  regios: 9
#  disciplines: 1,2,3,4
  scan_interval: 15
#  capcodes: 709540,709541,709542,709543
  icon: mdi:fire-truck
  nolocation: true
  contains: "GRIP"
  
- platform: p2000
  name: P2000 Utrecht
  regios: 9
#  disciplines: 1,2,3,4
  disciplines: Brandweerdiensten,Politiediensten,Gereserveerd
#  radius: 100000
  scan_interval: 30
#  latitude: 52.0533
#  longitude: 5.0902
  icon: mdi:fire-truck
  nolocation: true

Log:

ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/usr/local/lib/python3.10/http/client.py", line 941, in connect
    self.sock = self._create_connection(
  File "/usr/local/lib/python3.10/socket.py", line 824, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/p2000/sensor.py", line 129, in async_update
    self._feed = await self._hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/feedparser/api.py", line 214, in parse
    data = _open_resource(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/usr/local/lib/python3.10/site-packages/feedparser/api.py", line 114, in _open_resource
    return http.get(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/usr/local/lib/python3.10/site-packages/feedparser/http.py", line 158, in get
    f = opener.open(request)
  File "/usr/local/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.10/urllib/request.py", line 1377, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/local/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Try again>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant