core: CalDAV: Skipped event with missing 'vevent' property

The problem

I have a yaml configured caldav since forever and always wait for it to finally start to work or do new stuff. This is my work calendar. Before the new Beta it always errored out on authentication, now it progresses further.

The log now shows THOUSANDS of these:

Logger: homeassistant.components.caldav.calendar
Source: components/caldav/calendar.py:178

Integration: caldav ([documentation](https://rc.home-assistant.io/integrations/caldav), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+caldav%22))
First occurred: 23:07:48 (2525 occurrences)
Last logged: 23:08:06

Skipped event with missing 'vevent' property

I was told to check on the ICS files and was able to load a few, like this one: 210f397b-e76d-498a-8591-7f89f93bfa85.ics.txt

So this is not the problem as it seems, but in the log you will find a literally thousands of 404 errors of trying to load some ics files which is fails to do so.

I am very sure that the xml will be interesting here, but I have NO clue how to get it… Maybe someone else has? I had to obfuscate the real link to my CalDAV as it’s work stuff, but if someone needs more information, I am open to some private information passing over.

Btw the calendar is quite empty still now. But it finally shows up at least in Calendar 😄

What version of Home Assistant Core has the issue?

2022.7.0b0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

caldav

Link to integration documentation on our website

https://www.home-assistant.io/integrations/caldav/

Diagnostics information

home-assistant.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.caldav.calendar
Source: components/caldav/calendar.py:178

Integration: caldav ([documentation](https://rc.home-assistant.io/integrations/caldav), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+caldav%22))
First occurred: 23:07:48 (2525 occurrences)
Last logged: 23:08:06

Skipped event with missing 'vevent' property


### Additional information

_No response_

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

So we’ve had a debugging session, and the likely problem is that this calendar server only returns meta data and not the ICS data when doing a (date) search.

If I’m correct, there may be two possible workarounds, one is to add explicit loading to the caldav library, before return objects in date_search (for current HA release) and in search (for future HA releases), add something like this:

for obj in objects:
    if not obj.data:
        obj.load()

The other workaround is to do the same, just on the calling side (the HA caldav integration).

Arguably, since all(?) other caldav servers returns the full data object, I could add those lines into the next release of the caldav library, but I’m a bit hesitant … I’ll post some thoughts about it in the corresponding issue https://github.com/python-caldav/caldav/issues/201