Unable to connect to Nextcloud calendar

Hello, I just tried a fix. You can test with the Docker image bertrandda/gladys:caldav. Not having a CalDAV server with a self-signed certificate I couldn’t verify that it worked correctly :sweat_smile:. If it doesn’t work, I’ll have to find a way to set one up locally

1 Like

Hi @bertrandda, thanks for your image. Currently my Nextcloud server and the UPS are down because of a storm.
As soon as possible I’ll set up a Nextcloud on a machine I have for testing to try your image and give you feedback.
I’ll keep you posted.

2 Likes

Hi @bertrandda,
I just tried your image but it doesn’t work. I get the same error in Gladys regardless of the position of your button to verify the SSL certificate.
image

The Gladys log

2025-07-05T18:11:54+0200 \u003cinfo\u003e index.js:88 (Object.start) Starting CalDAV service
2025-07-05T18:11:54+0200 \u003cerror\u003e index.js:43 (CalDAVHandler.config) Error: Bad status: 0
    at XMLHttpRequest.request.onreadystatechange (/src/server/services/caldav/node_modules/dav-request/dav.js:3424:27)
    at Timeout._onTimeout (/src/server/services/caldav/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js:1089:51)
    at listOnTimeout (node:internal/timers:588:17)
    at processTimers (node:internal/timers:523:7)

I tried with Home Assistant and it works fine. My calendar synchronizes properly if I uncheck the same option.

The event created in Nextcloud for the test:


The event in HA

Thanks for your feedback — after managing to launch an instance with a self-signed certificate I was able to debug more cleanly. It should be fine now, a new version of the image is available; could you try again, please?

2 Likes

Thank you @bertrandda, I confirm that it is working now.


I can see the test event I created yesterday.

Thanks again!

1 Like

Great news, thanks! I’ve updated the PR with the npm package properly; I think we’re ready for review.

2 Likes

Thanks for the PR @bertrandda and thanks for the tests @_Will_71, it’s fine with me — it’s merged and will be included in the next Gladys release :slight_smile:

1 Like

It’s available in Gladys Assistant v4.61.1 :slight_smile:

1 Like