core: Withings Integration does not work with non-443 port
The problem
I switched my external URL from 443 to an alternate port and am now getting the below error when reloading the integration in debug mode. It was working before and I was not seeing this python errors in debug log (I looked at debug log because of previous unrelated error).
What version of Home Assistant Core has the issue?
2023.10.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Withings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/withings/
Diagnostics information
2023-10-09 14:49:01.242 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/withings/__init__.py", line 173, in register_webhook
await hass.data[DOMAIN][entry.entry_id].async_subscribe_webhooks(webhook_url)
File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 115, in async_subscribe_webhooks
await self._client.async_notify_subscribe(webhook_url, notification)
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 158, in async_notify_subscribe
await self._do_retry(call_super)
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 87, in _do_retry
raise exception
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 76, in _do_retry
return await func()
^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 154, in call_super
await self._hass.async_add_executor_job(
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 348, in notify_subscribe
self.request(path=self.PATH_NOTIFY, params=params)
File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 115, in request
return response_body_or_raise(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/withings_api/common.py", line 830, in response_body_or_raise
raise InvalidParamsException(status=status)
withings_api.common.InvalidParamsException: Error code 293
[...]
2023-10-09 14:53:17.796 ERROR (MainThread) [homeassistant.components.fritzbox] Timeout fetching 21a1ea981671ce2d035e0dae8993e551 data
2023-10-09 14:53:45.049 DEBUG (MainThread) [homeassistant.components.withings] Updating withings measures
2023-10-09 14:53:45.049 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2023-10-09 14:53:45.338 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2023-10-09 14:53:45.646 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings data in 0.597 seconds (success: True)
2023-10-09 14:53:46.648 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2023-10-09 14:53:46.992 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2023-10-09 14:53:47.344 DEBUG (MainThread) [homeassistant.components.withings] Subscribing https://ha.domain.com:9999/api/webhook/53cf29554be69c7988670787ca62e63d11951e44e4fc9e03e792fa4634e6fb68 for 1 in 5.0 seconds
2023-10-09 14:53:52.346 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2023-10-09 14:53:52.588 DEBUG (MainThread) [homeassistant.components.withings] Failed attempt 1 of 3 (Error code 293)
2023-10-09 14:53:53.089 DEBUG (MainThread) [homeassistant.components.withings] Attempt 2 of 3
2023-10-09 14:53:53.379 DEBUG (MainThread) [homeassistant.components.withings] Failed attempt 2 of 3 (Error code 293)
2023-10-09 14:53:54.385 DEBUG (MainThread) [homeassistant.components.withings] Attempt 3 of 3
2023-10-09 14:53:54.649 DEBUG (MainThread) [homeassistant.components.withings] Failed attempt 3 of 3 (Error code 293)
2023-10-09 14:53:56.150 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/withings/__init__.py", line 173, in register_webhook
await hass.data[DOMAIN][entry.entry_id].async_subscribe_webhooks(webhook_url)
File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 115, in async_subscribe_webhooks
await self._client.async_notify_subscribe(webhook_url, notification)
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 158, in async_notify_subscribe
await self._do_retry(call_super)
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 87, in _do_retry
raise exception
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 76, in _do_retry
return await func()
^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 154, in call_super
await self._hass.async_add_executor_job(
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 348, in notify_subscribe
self.request(path=self.PATH_NOTIFY, params=params)
File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 115, in request
return response_body_or_raise(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/withings_api/common.py", line 830, in response_body_or_raise
raise InvalidParamsException(status=status)
withings_api.common.InvalidParamsException: Error code 293
Example YAML snippet
new configuration.yaml:
homeassistant:
external_url: "https://ha.domain.com:9999"
old configuration.yaml:
homeassistant:
external_url: "https://ha.domain.com"
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 45 (21 by maintainers)
Please create a new issue