-
Notifications
You must be signed in to change notification settings - Fork 101
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
Missing ‘type’ or ‘collectiondate’ error in logs #1073
Comments
@nickfennell Is this still a problem? Bin types return okay for me. If you are still having issues, can you provide an example UPRN/Postcode for testing purposes please? |
Yeah, they're fine for me too. If you don't want to put your info here, you can find my email on my Github profile. |
Hi. Apologies for slow reply. Updated the integration to 0.123.1 today. Error shown in log file is as below:
Collection URL: https://www.rugby.gov.uk/check-your-next-bin-day Thanks! |
…nual mapping for Rugby Borough Council
When I originally wrote this parser, I decided to map bins to colours. The issue was that none of the bin mappings could be found for the provided type, so it was throwing nulls. I've changed it to just pull the bin type and make it pretty now. |
Understood. Will you be pushing a commit soon? Thank you for investigating. |
Yeah, it's fixed in #1088 |
Name of Council
Rugby Borough Council
Issue Information
Error returned is below.
`This error originated from a custom integration.
Logger: custom_components.uk_bin_collection
Source: custom_components/uk_bin_collection/init.py:282
integration: UK Bin Collection Data (documentation, issues)
First occurred: 01:19:27 (12 occurrences)
Last logged: 01:33:47
[UKBinCollection] Missing 'type' or 'collectionDate' in bin data: {'type': None, 'collectionDate': '12/12/2024'}
[UKBinCollection] Missing 'type' or 'collectionDate' in bin data: {'type': None, 'collectionDate': '19/12/2024'}
[UKBinCollection] Missing 'type' or 'collectionDate' in bin data: {'type': None, 'collectionDate': '28/12/2024'}
[UKBinCollection] Missing 'type' or 'collectionDate' in bin data: {'type': None, 'collectionDate': '02/01/2025'}
`
Verification
The text was updated successfully, but these errors were encountered: