Skip to content

Peterborough City Council - Timeout acquiring data #1902

@bretwhitcombe44-ops

Description

@bretwhitcombe44-ops

Name of Council

Peterborough City Council

Issue Information

Peterborough City Council appears to be broken. It hasn't been working for a few months now and just sits in a constant loop with the Selenium logs reporting "Unable to locate element" and "No such element"

This error originated from a custom integration.

Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/init.py:212
integration: UK Bin Collection Data (documentation, issues)
First occurred: 11:45:10 AM (35 occurrences)
Last logged: 1:00:31 PM

[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:


**Further logs from Selenium which may be of more use...**

13:07:32.065 INFO - Found handler: org.openqa.selenium.remote.server.ServicedSession@59dd69f0
13:07:32.065 INFO - Handler thread for session 34efda41b4af470fb2c0e892c432c087 (chrome): Executing POST on /session/34efda41b4af470fb2c0e892c432c087/element (handler: ServicedSession)
13:07:32.065 INFO - To upstream: {"using": "xpath", "value": "//input[@id="postcode"]"}
13:07:32.085 INFO - To downstream: {"value":{"error":"no such element","message":"no such element: Unable to locate element: {"method":"xpath","selector":"//input[@id="postcode"]"}\n (Session info: chrome=144.0.7559.132)","stacktrace":""}}

### Verification

- [x] I searched for similar issues at https://github.com/robbrad/UKBinCollectionData/issues?q=is:issue and found no duplicates
- [x] I have checked my address/postcode/UPRN works on the council's website
- [x] I have provided a detailed explanation of the issue as well as steps to replicate the issue
- [x] 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