Just upgraded hass.io and now ring will not authenticate - known issue?
Unable to connect to Ring service: 401 Client Error: Unauthorized for url: https://api.ring.com/clients_api/session
Just upgraded hass.io and now ring will not authenticate - known issue?
Unable to connect to Ring service: 401 Client Error: Unauthorized for url: https://api.ring.com/clients_api/session
Not that I have an answer - more that I have (other) trouble with the Ring-component…
Config as below, works fine - and then after some time it doesn’t, but returns some error messages and after that floods the log with “updating sensor took longer than…”
As far as I can tell, it seems to be something with the connection: the initial error message says “ConnectionResetError: [Errno 104] Connection reset by peer”.
However, I can’t really figure out what causes this problem and how to get closer to a solution…
A restart of hass.io (at present 0.86.3, running in docker on an Intel NUC) solves it - but only for some time…
Any suggestions?
Regards,
Chr.
configuration.yaml:
ring:
username: !secret ring_username
password: !secret ring_password
sensors:
sensor:
- platform: ring
monitored_conditions:
- last_ding
- volume
- wifi_signal_category
- wifi_signal_strength
- battery
binary_sensor:
- platform: ring
monitored_conditions: ding
Log:
2019-01-30 04:09:45 ERROR (MainThread) [homeassistant.helpers.entity] Update for binary_sensor.ring_front_door_ding fails
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 380, in _make_request
httplib_response = 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 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.6/ssl.py", line 1009, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.6/ssl.py", line 871, in read
return self._sslobj.read(len, buffer)
File "/usr/local/lib/python3.6/ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 380, in _make_request
httplib_response = 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 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.6/ssl.py", line 1009, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.6/ssl.py", line 871, in read
return self._sslobj.read(len, buffer)
File "/usr/local/lib/python3.6/ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
await self.async_device_update()
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ring.py", line 116, in update
self._data.check_alerts()
File "/usr/local/lib/python3.6/site-packages/ring_doorbell/doorbot.py", line 52, in check_alerts
self.update()
File "/usr/local/lib/python3.6/site-packages/ring_doorbell/generic.py", line 44, in update
self._get_attrs()
File "/usr/local/lib/python3.6/site-packages/ring_doorbell/generic.py", line 76, in _get_attrs
lst = self._ring.query(url).get(self.family)
File "/usr/local/lib/python3.6/site-packages/ring_doorbell/__init__.py", line 188, in query
req = self.session.get((url), params=urlencode(params))
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2019-01-30 04:10:15 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:10:46 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:11:17 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:11:48 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:12:19 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:12:50 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:13:21 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:13:51 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:14:22 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:14:53 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:15:23 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:15:54 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
2019-01-30 04:16:25 WARNING (MainThread) [homeassistant.components.sensor] Updating ring sensor took longer than the scheduled update interval 0:00:30
(and on and on and on)
Receive error messages recently. Is there a workaround or explanation about this problem?
## Installed system
## -------------------
System Health
arch armv7l
dev false
docker false
hassio false
os_name Linux
python_version 3.7.3
timezone Europe/Vaduz
version 0.97.2
virtualenv true
Lovelace
mode yaml
resources 27
views 6
## Error Messages
## -------------------
2019-08-24 02:27:05 ERROR (MainThread) [homeassistant.helpers.entity] Update for binary_sensor.ring_haustur_motion fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
...
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
....
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 249, in async_update_ha_state
await self.async_device_update()
....