home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.92k stars 30.98k forks source link

On Home Assistant boot - Error doing job: Task exception was never retrieved (None) #124662

Open jamespreedy opened 2 months ago

jamespreedy commented 2 months ago

The problem

I'm getting the below error that seems to be Twinkly related. Interestingly, the 404 message error URL points to http://192.168.2.142/xled/v1/login 192.168.2.142 is not an IP address that I have any Twinkly products - perhaps they were at some point? Could it be that some sort of cache has been retained from a previous entity?

Logger: homeassistant
Source: components/twinkly/config_flow.py:60
First occurred: 11:46:23 PM (1 occurrences)
Last logged: 11:46:23 PM

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 108, in _async_start
    await gather_with_limited_concurrency(FLOW_INIT_LIMIT, *init_coros)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 106, in gather_with_limited_concurrency
    return await gather(
           ^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 104, in sem_task
    return await task
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1293, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1323, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 516, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/twinkly/config_flow.py", line 60, in async_step_dhcp
    device_info = await Twinkly(
                  ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 293, in get_details
    return self._valid_response(await self._get("gestalt"))
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 195, in _get
    await self.ensure_token()
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 251, in ensure_token
    await self.refresh_token()
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 244, in refresh_token
    await self.login()
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 259, in login
    async with self._get_session().post(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 787, in _request
    resp.raise_for_status()
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1093, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='http://192.168.2.142/xled/v1/login'

What version of Home Assistant Core has the issue?

core-2024.8.3

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

twinkly

Link to integration documentation on our website

https://www.home-assistant.io/integrations/twinkly

Diagnostics information

home-assistant_twinkly_2024-08-26T22-54-16.235Z.log

Example YAML snippet

I'm not using any YAML for this integration.
I've deleted, rebooted and then re-added my Twinkly lights.

Anything in the logs that might be useful for us?

Logger: homeassistant
Source: components/twinkly/config_flow.py:60
First occurred: 11:46:23 PM (1 occurrences)
Last logged: 11:46:23 PM

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 108, in _async_start
    await gather_with_limited_concurrency(FLOW_INIT_LIMIT, *init_coros)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 106, in gather_with_limited_concurrency
    return await gather(
           ^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 104, in sem_task
    return await task
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1293, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1323, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 516, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/twinkly/config_flow.py", line 60, in async_step_dhcp
    device_info = await Twinkly(
                  ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 293, in get_details
    return self._valid_response(await self._get("gestalt"))
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 195, in _get
    await self.ensure_token()
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 251, in ensure_token
    await self.refresh_token()
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 244, in refresh_token
    await self.login()
  File "/usr/local/lib/python3.12/site-packages/ttls/client.py", line 259, in login
    async with self._get_session().post(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 787, in _request
    resp.raise_for_status()
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1093, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='http://192.168.2.142/xled/v1/login'

Additional information

No response

home-assistant[bot] commented 2 months ago

Hey there @dr1rrb, @robbie1221, @olen, mind taking a look at this issue as it has been labeled with an integration (twinkly) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `twinkly` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign twinkly` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


twinkly documentation twinkly source (message by IssueLinks)