Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardiff - Error setting up entry #1175

Closed
4 tasks done
jone9618 opened this issue Jan 17, 2025 · 2 comments · Fixed by #1197
Closed
4 tasks done

Cardiff - Error setting up entry #1175

jone9618 opened this issue Jan 17, 2025 · 2 comments · Fixed by #1197
Labels
bug Something isn't working

Comments

@jone9618
Copy link

Name of Council

Cardiff

Issue Information

Has been working well for a long while. Stopped working a few months ago, and have been unable to reconnect despite erasing and resetting the configuration plenty of times.

I was waiting in the hope that someone else would report an issue with Cardiff. So can't be sure it is not an issue with me - but as I say this has worked well previously and I have retried setting it up quite a few times.

Postcode/House number works on council website.

Here is a neighbouring/valid UPRN for you to try to replicate 100100041710

When I try setting up a new entry the config flow box spins it wheels for a while and then tells me that "Unknown error occurred". The integration then seems to sit there trying unsuccessfully to initialise.

Lots of log messages generated, such as:

This error originated from a custom integration.

Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/init.py:262
integration: UK Bin Collection Data (documentation, issues)
First occurred: 14:52:13 (70 occurrences)
Last logged: 17:55:32

[UKBinCollection] Timeout while updating data:

and

Logger: uk_bin_collection.uk_bin_collection.get_bin_data
Source: /usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py:127
First occurred: 14:33:09 (73 occurrences)
Last logged: 17:56:32

Request Error: HTTPSConnectionPool(host='www.cardiff.gov.uk', port=443): Read timed out. (read timeout=120)

and

Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: 14:32:09 (3 occurrences)
Last logged: 17:26:45

Error setting up entry Blackoak for uk_bin_collection
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/uk_bin_collection/init.py", line 133, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 306, in async_config_entry_first_refresh
await self._async_refresh(
log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True
)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/uk_bin_collection/init.py", line 250, 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
^^^^^^^^^
asyncio.exceptions.CancelledError

Apologies in advance if this is me doing something wrong.

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
@jone9618 jone9618 added the bug Something isn't working label Jan 17, 2025
@jone9618 jone9618 changed the title Error setting up entry Cardiff - Error setting up entry Jan 18, 2025
@jamesfk
Copy link

jamesfk commented Jan 23, 2025

A plus one from another Cardiffian - been fine for ages until a few months ago and no joy reloading or deleting to set up again fresh.

@m26dvd
Copy link
Contributor

m26dvd commented Jan 28, 2025

It looks like Cardiff have made a change to their website which is not loading correctly.

If you change the URL in your config to anything else, i.e. https://www.google.com, it will work correctly

I have updated the wiki with this info and will release it in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants