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

Neath Port Talbot Failing to Setip #1213

Closed
4 tasks done
jezza10d opened this issue Feb 2, 2025 · 3 comments · Fixed by #1216
Closed
4 tasks done

Neath Port Talbot Failing to Setip #1213

jezza10d opened this issue Feb 2, 2025 · 3 comments · Fixed by #1216
Labels
bug Something isn't working

Comments

@jezza10d
Copy link

jezza10d commented Feb 2, 2025

Name of Council

Neath Port Talbot

Issue Information

Neath Port Talbot is failing to setup. It appears as if the email reminder addition may be the cause/ Logs from Home Assistant

Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/__init__.py:190
integration: UK Bin Collection Data ([documentation](https://github.com/robbrad/UKBinCollectionData/wiki), [issues](https://github.com/robbrad/UKBinCollectionData/issues))
First occurred: 3:12:25 PM (23 occurrences)
Last logged: 3:55:38 PM

[UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: Message: element not interactable (Session info: chrome=130.0.6723.69)
[UKBinCollection] Unexpected error in async_setup_entry: Unexpected error: time data 'Email reminders 2025' does not match format '%A, %d %B %Y'
[UKBinCollection] Unexpected error in async_setup_entry: Timeout while updating data:
Traceback (most recent call last):
  File "/config/custom_components/uk_bin_collection/__init__.py", line 306, 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/NeathPortTalbotCouncil.py", line 40, in parse_data
    cookieAccept.click()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 119, in click
    self._execute(Command.CLICK_ELEMENT)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 570, in _execute
    return self._parent.execute(command, params)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
    self.error_handler.check_response(response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=130.0.6723.69)


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 379, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/uk_bin_collection/__init__.py", line 329, in _async_update_data
    raise UpdateFailed(f"Unexpected error: {exc}") from exc
homeassistant.helpers.update_coordinator.UpdateFailed: Unexpected error: Message: element not interactable
  (Session info: chrome=130.0.6723.69)


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 190, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in async_config_entry_first_refresh
    raise ex
homeassistant.exceptions.ConfigEntryNotReady: Unexpected error: Message: element not interactable
  (Session info: chrome=130.0.6723.69)

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
@jezza10d jezza10d added the bug Something isn't working label Feb 2, 2025
@robbrad
Copy link
Owner

robbrad commented Feb 2, 2025

@jezza10d which version of the integration are you on ?

@jordandavies2
Copy link

I have the same issue with Neath Port Talbot. I am running integration 0.134.1

@jordandavies2
Copy link

jordandavies2 commented Feb 14, 2025

Error message in integration

Image

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