UKBinCollectionData
UKBinCollectionData copied to clipboard
Croydon Council - ValueError: Code 5: Failed to get bin data. Too many requests. Please wait a few minutes before trying again.
Hi, I have been getting the following errors since mid Feb. (See below). The sensor are updating ok, but the calendar entries are not created. The last successful calendar entry was created on the 11th Feb
I couldn't see anything similar in other issues.
Let me know if you need further info.
Thanks
===============================================================================
Logger: homeassistant.helpers.entity_platform Source: helpers/entity_platform.py:420 First occurred: 24 February 2025 at 11:17:34 (1 occurrences) Last logged: 24 February 2025 at 11:17:34
uk_bin_collection raises exception ConfigEntryNotReady in forwarded platform calendar; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
===============================================================================
This error originated from a custom integration.
Logger: custom_components.uk_bin_collection Source: custom_components/uk_bin_collection/init.py:306 integration: UK Bin Collection Data (documentation, issues) First occurred: 24 February 2025 at 11:17:34 (1 occurrences) Last logged: 24 February 2025 at 11:17:34
[UKBinCollection] Unexpected error: Code 5: Failed to get bin data. Too many requests. Please wait a few minutes before trying again. 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/CroydonCouncil.py", line 256, in parse_data collection_data = get_collection_data(s, base_url, csrf_token, address_id) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/councils/CroydonCouncil.py", line 229, in get_collection_data raise ValueError( "Code 5: Failed to get bin data. Too many requests. Please wait a few minutes before trying again." ) ValueError: Code 5: Failed to get bin data. Too many requests. Please wait a few minutes before trying again.