core: Uncaught thread exception
The problem
Saw “Uncaught thread exception” in logger - maybe it’s something worth having exception on?
Environment
- Home Assistant Core release with the issue: 0.114.3
- Last working Home Assistant Core release (if known): n/a
- Operating environment (OS/Container/Supervised/Core): Supervised
- Integration causing this issue: not sure, but I guess it’s speedtest
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/speedtestdotnet/
Problem-relevant configuration.yaml
n/a
Traceback/Error logs
Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:313
First occurred: 25 sierpnia 2020, 21:25:49 (1 occurrences)
Last logged: 25 sierpnia 2020, 21:25:49
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/site-packages/speedtest.py", line 905, in run
f = self._opener(request)
File "/usr/local/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/local/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.8/site-packages/speedtest.py", line 537, in http_open
return self.do_open(
File "/usr/local/lib/python3.8/urllib/request.py", line 1354, in do_open
r = h.getresponse()
File "/usr/local/lib/python3.8/http/client.py", line 1332, in getresponse
response.begin()
File "/usr/local/lib/python3.8/http/client.py", line 303, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.8/http/client.py", line 285, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: 2ï$¿ôÊ{Qt"¿¬ÕÖHTTP/1.1 200 OK
and
Logger: homeassistant.components.speedtestdotnet
Source: components/speedtestdotnet/__init__.py:159
Integration: Speedtest.net (documentation, issues)
First occurred: 25 sierpnia 2020, 21:25:52 (1 occurrences)
Last logged: 25 sierpnia 2020, 21:25:52
Unexpected error fetching speedtestdotnet data: unsupported operand type(s) for +: 'int' and 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 143, in async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 131, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/__init__.py", line 165, in async_update
return await self.hass.async_add_executor_job(self.update_data)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/speedtestdotnet/__init__.py", line 159, in update_data
self.api.upload()
File "/usr/local/lib/python3.8/site-packages/speedtest.py", line 1664, in upload
self.results.bytes_sent = sum(finished)
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Additional information
Didn’t do anything special, integration still works as expected.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 16 (7 by maintainers)
I see the same error about once every other day. I’ve seen it both on 0.114.1 and 0.115.2.