question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with AWB-LM (Abfall.io)

See original GitHub issue

Hi,

found the integration not working with AWB-LM (Abfall.io) out of nowhere. Maybe after an update but tried to roll back to 1.24.0 which not helped me. Renewed the key and checked again all settings but it still fails with the following error:

Logger: waste_collection_schedule.scraper Source: custom_components/waste_collection_schedule/waste_collection_schedule/scraper.py:143 Integration: waste_collection_schedule (documentation) First occurred: 02:48:17 (1 occurrences) Last logged: 02:48:17 fetch failed for source AbfallPlus: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/icalendar/parser.py", line 340, in parts validate_token(name) File "/usr/local/lib/python3.10/site-packages/icalendar/parser.py", line 128, in validate_token raise ValueError(name) ValueError: <br /> During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/scraper.py", line 141, in fetch entries = self._source.fetch() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/abfall_io.py", line 130, in fetch dates = self._ics.convert(ics_file) File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS.py", line 38, in convert events: List[Any] = icalevents.events( File "/usr/local/lib/python3.10/site-packages/icalevents/icalevents.py", line 50, in events found_events += parse_events(content, start=start, end=end) File "/usr/local/lib/python3.10/site-packages/icalevents/icalparser.py", line 252, in parse_events calendar = Calendar.from_ical(content) File "/usr/local/lib/python3.10/site-packages/icalendar/cal.py", line 330, in from_ical name, params, vals = line.parts() File "/usr/local/lib/python3.10/site-packages/icalendar/parser.py", line 352, in parts raise ValueError( ValueError: Content line could not be parsed into parts: '<br />': <br />

Home Assistant: 2022.9.6 Waste Collection Schedule: 1.24.0, 1.26.0 & 1.27.0

My Config: sources: - name: abfall_io args: key: 0ff491ffdf614d6f34870659c0cXXXXX f_id_kommune: XXXX f_id_bezirk: XX f_id_strasse: XXXX fetch_time: "04:00" day_switch_time: "00:00"

Any idea about this?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
greenishhhhcommented, Oct 27, 2022

abfall_io.py line 135:

ics_file = r.text

contains those errors together with the actual data

<br />
<b>Notice</b>:  Undefined index: id1984 in <b>/kunden/490784_78549/__global/__autoload/awk_global_termine.class.php</b> on line <b>451</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /kunden/490784_78549/__global/__autoload/awk_global_termine.class.php:451) in <b>/kunden/490784_78549/__api/widgets/publisher/canvas/scripts/export_ics.inc.php</b> on line <b>194</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /kunden/490784_78549/__global/__autoload/awk_global_termine.class.php:451) in <b>/kunden/490784_78549/__api/widgets/publisher/canvas/scripts/export_ics.inc.php</b> on line <b>203</b><br />

maybe someone more familiar with the API might know what those mean?

0reactions
greenishhhhcommented, Nov 12, 2022

This is still an issue when using lm_de in abfall_io

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home-Assistant integration of 'Abfall.IO' waste collection dates ...
Hi all, I wanted the garbage collection dates on my HA dashboard. Unfortunately, the city of Landshut doesn't offer an API to access...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found