Skip to content

North Yorkshire - Timeout while updating data #1946

@dannyteal1990

Description

@dannyteal1990

Name of Council

North Yorkshire

Issue Information

Integration goes from initialising to:
homeassistant.exceptions.ConfigEntryNotReady: Timeout while updating data:

Browsing to the council site starts with URL: https://www.northyorks.gov.uk/bin-calendar/lookup
Then asked to enter a postcode and select a house from a drop down, followed by hitting continue.
URL then changes to: https://www.northyorks.gov.uk/bin-calendar/Selby/results/*UPRN*.

Changed the URL in reconfigure to use "https://www.northyorks.gov.uk/bin-calendar/Selby/results/" + UPRN which did refresh but on the next refresh it showed as "unknown" and then is back to to timing out.

Further log details:
Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/init.py:212
integration: UK Bin Collection Data (documentation, issues)
First occurred: 13:30:26 (17 occurrences)
Last logged: 13:58:22

[UKBinCollection] Unexpected error in async_setup_entry: Timeout while updating data:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/asyncio/tasks.py", line 488, in wait_for
return await fut
^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/uk_bin_collection/init.py", line 348, in _async_update_data
data = await asyncio.wait_for(
^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "/usr/local/lib/python3.14/asyncio/tasks.py", line 487, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/timeouts.py", line 114, 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 426, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/uk_bin_collection/init.py", line 377, in _async_update_data
raise UpdateFailed(f"Timeout while updating data: {exc}") from exc
homeassistant.helpers.update_coordinator.UpdateFailed: Timeout while updating data:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/uk_bin_collection/init.py", line 212, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 319, in async_config_entry_first_refresh
await self._async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 351, in _async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady: Timeout while updating data:

Verification

  • I searched for similar issues at https://github.com/robbrad/UKBinCollectionData/issues?q=is:issue and found no duplicates
  • I have checked my address/postcode/UPRN works on the council's website
  • I have provided a detailed explanation of the issue as well as steps to replicate the issue
  • I understand that this project is run by volunteer contributors therefore completion of this issue cannot be guaranteed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions