core: Withings not working on 2023.12.0b0
The problem
On updating to the newest 2023.12.0b0 withings is no longer working and giving an error like you can see below. Not sure if that is already public but I didn´t find anything. When I competly remove the integration and try to configure it again I just get the Timeout resolving OAuth token error message.
What version of Home Assistant Core has the issue?
core-2023.12.0b0
What was the last working version of Home Assistant Core?
core-2023.11.3
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Withings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/withings
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2023-11-29 23:19:51.481 ERROR (MainThread) [homeassistant.components.withings] Unexpected error fetching Withings workout data: Timeout occurred while connecting to Withings
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiowithings/withings.py", line 105, in _request
response = await self.session.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 574, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 628, in sock_connect
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiowithings/withings.py", line 104, in _request
async with asyncio.timeout(self.request_timeout):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
raise TimeoutError from exc_val
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 70, in _async_update_data
return await self._internal_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 264, in _internal_update_data
workouts = await self._client.get_workouts_in_period(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiowithings/withings.py", line 338, in get_workouts_in_period
return await self._get_workouts(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiowithings/withings.py", line 314, in _get_workouts
response = await self._request(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiowithings/withings.py", line 113, in _request
raise WithingsConnectionError(msg) from exception
aiowithings.exceptions.WithingsConnectionError: Timeout occurred while connecting to Withings
2023-11-29 23:21:58.431 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Timeout resolving OAuth token:
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 1
- Comments: 22 (10 by maintainers)
Yup. Whoopsi. Forgot about that. Thanks!
The fact that this happens both in beta and in 11.3 leads me to believe that Withings is slower to respond, for whatever reason. I’m now just going to sit on the ground in the train to open my laptop and create a testfix
There is only 1 line from withings integration:
2023-11-30 17:41:48.205 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Timeout resolving OAuth token: