UKBinCollectionData icon indicating copy to clipboard operation
UKBinCollectionData copied to clipboard

Stockton-on-Tees Council Issue

Open tonyp1983 opened this issue 3 months ago • 0 comments

Name of Council

Stockton-on-Tees

Issue Information

Getting errors in the Home Assistant custom component when trying to pull data for Stockton-on-Tees council.

I have attempted to reconfigure and even deleted and setup again but the issue persists.

Logs: `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: 7 January 2026 at 21:01:44 (703 occurrences) Last logged: 18:35:17

[UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: Message: Stacktrace: #0 0x5b63db4ed61a #1 0x5b63daf6a20b #2 0x5b63dafbb90f #3 0x5b63dafbbb51 #4 0x5b63db009d84 #5 0x5b63db00720e #6 0x5b63dafae232 #7 0x5b63dafaeee1 #8 0x5b63db4b63f9 #9 0x5b63db4b934d #10 0x5b63db49f122 #11 0x5b63db4b9f2b #12 0x5b63db485c30 #13 0x5b63db4dad78 #14 0x5b63db4daf4c #15 0x5b63db4ec973 #16 0x7e36acce9aa4 #17 0x7e36acd76a64 __clone [UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: Message: Stacktrace: #0 0x611436d5a61a #1 0x6114367d720b #2 0x61143682890f #3 0x611436828b51 #4 0x611436876d84 #5 0x61143687420e #6 0x61143681b232 #7 0x61143681bee1 #8 0x611436d233f9 #9 0x611436d2634d #10 0x611436d0c122 #11 0x611436d26f2b #12 0x611436cf2c30 #13 0x611436d47d78 #14 0x611436d47f4c #15 0x611436d59973 #16 0x763f1b32daa4 #17 0x763f1b3baa64 __clone [UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: Message: Stacktrace: #0 0x5827000fc61a #1 0x5826ffb7920b #2 0x5826ffbca90f #3 0x5826ffbcab51 #4 0x5826ffc18d84 #5 0x5826ffc1620e #6 0x5826ffbbd232 #7 0x5826ffbbdee1 #8 0x5827000c53f9 #9 0x5827000c834d #10 0x5827000ae122 #11 0x5827000c8f2b #12 0x582700094c30 #13 0x5827000e9d78 #14 0x5827000e9f4c #15 0x5827000fb973 #16 0x7591cbd82aa4 #17 0x7591cbe0fa64 __clone [UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: Message: Stacktrace: #0 0x603d2bb8561a #1 0x603d2b60220b #2 0x603d2b65390f #3 0x603d2b653b51 #4 0x603d2b6a1d84 #5 0x603d2b69f20e #6 0x603d2b646232 #7 0x603d2b646ee1 #8 0x603d2bb4e3f9 #9 0x603d2bb5134d #10 0x603d2bb37122 #11 0x603d2bb51f2b #12 0x603d2bb1dc30 #13 0x603d2bb72d78 #14 0x603d2bb72f4c #15 0x603d2bb84973 #16 0x72c7d610faa4 #17 0x72c7d619ca64 __clone [UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: Message: Stacktrace: #0 0x5f3cd522f61a #1 0x5f3cd4cac20b #2 0x5f3cd4cfd90f #3 0x5f3cd4cfdb51 #4 0x5f3cd4d4bd84 #5 0x5f3cd4d4920e #6 0x5f3cd4cf0232 #7 0x5f3cd4cf0ee1 #8 0x5f3cd51f83f9 #9 0x5f3cd51fb34d #10 0x5f3cd51e1122 #11 0x5f3cd51fbf2b #12 0x5f3cd51c7c30 #13 0x5f3cd521cd78 #14 0x5f3cd521cf4c #15 0x5f3cd522e973 #16 0x76b2a3cfbaa4 #17 0x76b2a3d88a64 __clone 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.13/asyncio/tasks.py", line 507, in wait_for return await fut ^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 101, in run return self.client_code( ~~~~~~~~~~~~~~~~^ council_module.CouncilClass(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<9 lines>... council_module_str=self.parsed_args.module, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 121, in client_code return get_bin_data_class.template_method(address_url, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 61, in template_method bin_data_dict = self.get_and_parse_data(this_url, **kwargs) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 82, in get_and_parse_data bin_data_dict = self.parse_data(page, url=address_url, **kwargs) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/councils/StocktonOnTeesCouncil.py", line 39, in parse_data inputElement_postcode = WebDriverWait(driver, 30).until( EC.presence_of_element_located( ...<4 lines>... ) ) File "/usr/local/lib/python3.13/site-packages/selenium/webdriver/support/wait.py", line 122, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace: #0 0x5c7c9508c01a #1 0x5c7c94b2ba70 #2 0x5c7c94b7d907 #3 0x5c7c94b7db01 #4 0x5c7c94bcbd54 #5 0x5c7c94ba340d #6 0x5c7c94bc914f #7 0x5c7c94ba31b3 #8 0x5c7c94b6f59b #9 0x5c7c94b70971 #10 0x5c7c950511eb #11 0x5c7c95054f39 #12 0x5c7c950382c9 #13 0x5c7c95055ae8 #14 0x5c7c9501cbaf #15 0x5c7c950790a8 #16 0x5c7c95079286 #17 0x5c7c9508aff6 #18 0x71c43ff51aa4 #19 0x71c43ffdea34 __clone

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 416, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/uk_bin_collection/init.py", line 383, in _async_update_data raise UpdateFailed(f"Unexpected error: {exc}") from exc homeassistant.helpers.update_coordinator.UpdateFailed: Unexpected error: Message: Stacktrace: #0 0x5c7c9508c01a #1 0x5c7c94b2ba70 #2 0x5c7c94b7d907 #3 0x5c7c94b7db01 #4 0x5c7c94bcbd54 #5 0x5c7c94ba340d #6 0x5c7c94bc914f #7 0x5c7c94ba31b3 #8 0x5c7c94b6f59b #9 0x5c7c94b70971 #10 0x5c7c950511eb #11 0x5c7c95054f39 #12 0x5c7c950382c9 #13 0x5c7c95055ae8 #14 0x5c7c9501cbaf #15 0x5c7c950790a8 #16 0x5c7c95079286 #17 0x5c7c9508aff6 #18 0x71c43ff51aa4 #19 0x71c43ffdea34 __clone

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 317, in async_config_entry_first_refresh await self._async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 349, in _async_config_entry_first_refresh raise ex homeassistant.exceptions.ConfigEntryNotReady: Unexpected error: Message: Stacktrace: #0 0x5c7c9508c01a #1 0x5c7c94b2ba70 #2 0x5c7c94b7d907 #3 0x5c7c94b7db01 #4 0x5c7c94bcbd54 #5 0x5c7c94ba340d #6 0x5c7c94bc914f #7 0x5c7c94ba31b3 #8 0x5c7c94b6f59b #9 0x5c7c94b70971 #10 0x5c7c950511eb #11 0x5c7c95054f39 #12 0x5c7c950382c9 #13 0x5c7c95055ae8 #14 0x5c7c9501cbaf #15 0x5c7c950790a8 #16 0x5c7c95079286 #17 0x5c7c9508aff6 #18 0x71c43ff51aa4 #19 0x71c43ffdea34 __clone `

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

tonyp1983 avatar Jan 08 '26 19:01 tonyp1983