Can't get CalDAV to work - Sardine Error 405

Hi,

I am stuck configuring CalDAV. After getting connection refused errors and fixing them I ran into a new error:

2018-12-30 08:44:02.064 [WARN ] [caldav.internal.job.EventReloaderJob] - Sardine error while loading calendar entries: Unexpected response (405 - Method Not Allowed)

com.github.sardine.impl.SardineException: Unexpected response

	at com.github.sardine.impl.handler.ValidatingResponseHandler.validateResponse(ValidatingResponseHandler.java:48) ~[261:org.openhab.io.caldav:1.13.0]

	at com.github.sardine.impl.handler.MultiStatusResponseHandler.handleResponse(MultiStatusResponseHandler.java:40) ~[261:org.openhab.io.caldav:1.13.0]

	at com.github.sardine.impl.handler.MultiStatusResponseHandler.handleResponse(MultiStatusResponseHandler.java:35) ~[261:org.openhab.io.caldav:1.13.0]

	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:218) ~[261:org.openhab.io.caldav:1.13.0]

	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:160) ~[261:org.openhab.io.caldav:1.13.0]

	at com.github.sardine.impl.SardineImpl.execute(SardineImpl.java:962) ~[261:org.openhab.io.caldav:1.13.0]

	at com.github.sardine.impl.SardineImpl.list(SardineImpl.java:417) ~[261:org.openhab.io.caldav:1.13.0]

	at com.github.sardine.impl.SardineImpl.list(SardineImpl.java:409) ~[261:org.openhab.io.caldav:1.13.0]

	at com.github.sardine.impl.SardineImpl.list(SardineImpl.java:386) ~[261:org.openhab.io.caldav:1.13.0]

	at org.openhab.io.caldav.internal.job.EventReloaderJob.loadEvents(EventReloaderJob.java:246) ~[261:org.openhab.io.caldav:1.13.0]

	at org.openhab.io.caldav.internal.job.EventReloaderJob.execute(EventReloaderJob.java:137) [261:org.openhab.io.caldav:1.13.0]

	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh240]

	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh240]


Konfig is:

caldavio:Muell:url=https://calendar.google.com/calendar/ical/<CALENDAR_ID>%40group.calendar.google.com/private-a8b2533cd63b966945a6031dc1718b86/basic.ics
caldavio:Muell:username=<NAME>
caldavio:Muell:password=<PASS>
caldavio:Muell:reloadInterval=1
caldavio:Muell:preloadTime=2
caldavio:Muell:disableCertificateVerification=true
caldavio:Muell:charset=utf8

Items:

String      CalDAV_Muell_1       "Erste Tonne [%s]"                          (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:1 value:NAME" }
DateTime    CalDAV_Muell_1_Date  "Datum der Abholung [%1$td.%1$tm.%1$tY]"    (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:1 value:START" }
String      CalDAV_Muell_2       "Zweite Tonne [%s]"                         (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:2 value:NAME" }
DateTime    CalDAV_Muell_2_Date  "Datum der Abholung [%1$td.%1$tm.%1$tY]"    (gTest)       { caldavPersonal="calendar:Muell type:EVENT eventNr:2 value:START" }

Any Ideas here?

Thanks in Advance
Sven

Thank you for your response.

Sadly, the linked thread does not help. My Error message is different …

So you deleted your caldavPersoanl.config and caldavio.config files, restarted openHAB and it still does not work?

Yes, thats what I did.

sudo systemctl stop openhab2
<delete files>
sudo systemctl start openhab2

Then I am out of ideas, sorry. I’m using the caldavCommand version …

No problem. Thank you though. :slight_smile:

In your first post you are not mentioning that you are using a caldavPersonal.cfg at all:

You will need it :grinning:

Yes, thank you. I have one. Didn’t have it from start, but now I have it and it didnÄt change the behaviour. :frowning:

Search for that term in this forum, lot of answers. Maybe you can solve it with those.