UKBinCollectionData
UKBinCollectionData copied to clipboard
Guildford: Failed setup, will retry: Unexpected error: get() takes 1 positional argument but 2 were given
Name of Council
Guildford Council
Issue Information
- Installed component
- Set up for Guildford Council
- Added UPRN, road and house number
- Error occurs straightaway after saving configuration.
Any help resolving this appreciated!
Note issue is potentially the same as closed issue for a different council: https://github.com/robbrad/UKBinCollectionData/issues/1204
Log file: 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: 11:48:44 (14 occurrences) Last logged: 11:56:11
[UKBinCollection] Unexpected error: get() takes 1 positional argument but 2 were given 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 81, in get_and_parse_data page = self.get_data(address_url) File "/usr/local/lib/python3.13/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 124, in get_data full_page = requests.get(url, headers, verify=False, timeout=120) TypeError: get() takes 1 positional argument but 2 were given
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