My Xbox integration in HA keeps failing. This is the error in the logs. What might I do to fix it?
Logger: homeassistant.config_entries
Source: components/cloud/account_link.py:116
First occurred: July 11, 2022 at 10:51:43 AM (1 occurrences)
Last logged: July 11, 2022 at 10:51:43 AM
Error setting up entry Home Assistant Cloud for xbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/xbox/__init__.py", line 101, in async_setup_entry
consoles: SmartglassConsoleList = await client.smartglass.get_console_list()
File "/usr/local/lib/python3.10/site-packages/xbox/webapi/api/provider/smartglass/__init__.py", line 54, in get_console_list
resp = await self._fetch_list("devices", params, **kwargs)
File "/usr/local/lib/python3.10/site-packages/xbox/webapi/api/provider/smartglass/__init__.py", line 359, in _fetch_list
resp = await self.client.session.get(
File "/usr/local/lib/python3.10/site-packages/xbox/webapi/api/client.py", line 86, in get
return await self.request(hdrs.METH_GET, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/xbox/webapi/api/client.py", line 60, in request
await self._auth_mgr.refresh_tokens()
File "/usr/src/homeassistant/homeassistant/components/xbox/api.py", line 27, in refresh_tokens
await self._oauth_session.async_ensure_token_valid()
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 475, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 89, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/usr/src/homeassistant/homeassistant/components/cloud/account_link.py", line 116, in _async_refresh_token
new_token = await account_link.async_fetch_access_token(
File "/usr/local/lib/python3.10/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://account-link.nabucasa.com/refresh_token/xbox')