core: 0.103.6 Ring OAuth Broken Again
Home Assistant release with the issue:
0.103.6
Last working Home Assistant release (if known):
0.103.5
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Integration:
https://www.home-assistant.io/integrations/ring
Description of problem:
Ring devices don’t load on startup and there is an OAuth related exception in the logs
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Traceback (if applicable):
2020-01-09 15:11:17 ERROR (MainThread) [homeassistant.setup] Error during setup of component ring
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 176, in _async_setup_component
component.setup, hass, processed_config # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/ring/__init__.py", line 55, in setup
ring = Ring(username=username, password=password, cache_file=cache)
File "/usr/local/lib/python3.7/site-packages/ring_doorbell/__init__.py", line 62, in __init__
self._process_cached_session()
File "/usr/local/lib/python3.7/site-packages/ring_doorbell/__init__.py", line 91, in _process_cached_session
req = self.query(url, raw=True)
File "/usr/local/lib/python3.7/site-packages/ring_doorbell/__init__.py", line 198, in query
'Bearer {}'.format(self._get_oauth_token())
File "/usr/local/lib/python3.7/site-packages/ring_doorbell/__init__.py", line 111, in _get_oauth_token
self.auth = oauth.refresh_tokens()
File "/usr/local/lib/python3.7/site-packages/ring_doorbell/auth.py", line 59, in refresh_tokens
token = self._oauth.refresh_token(OAuth.ENDPOINT)
File "/usr/local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 446, in refresh_token
self.token = self._client.parse_request_body_response(r.text, scope=self.scope)
File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 421, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 431, in parse_token_response
validate_token_parameters(params)
File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in validate_token_parameters
raise MissingTokenError(description="Missing access token parameter.")
Additional information:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 15
- Comments: 26 (7 by maintainers)
Yep. Same thing here, thought I misconfigured something.
Home Assistant release with the issue: 0.103.6
Last working Home Assistant release (if known): 0.103.6
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io on Ubuntu VM in VirtualBox
Nothing special, just added the integration. Of course now I’m getting the following in my logs:
Seems someone reached out to Ring and got a response from the CTO.
https://github.com/home-assistant/home-assistant/issues/30076#issuecomment-572913756
Hopefully, work on PR #30564 will solve this once and for all. Can’t really blame Ring; they’re trying to fix long time security issues on their end at least.