Nextcloud Calendar connect via caldav URL not working
-
I tried to use OneCalendar on android, it has a "add nextcloud account" option
I also tried to add to my thunderbird on PC.
When I try : curl -v https://
/remote.php/dav --user "yeah:ok"- Trying 192.168.1.33:443...
- Connected to
(192.168.1.33) port 443 (#0) - schannel: disabled automatic use of client certificate
-
- ALPN: offers http/1.1
-
- ALPN: server accepted http/1.1
-
- Server auth using Basic with user 'yeah'
-
GET /remote.php/dav HTTP/1.1
-
Host:

-
Authorization: Basic YWFydEByb3RvdmVnYXMubno6RnJhbmtpZTQ5
-
User-Agent: curl/7.83.1
-
Accept: /
-
- Mark bundle as not supporting multiuse
- < HTTP/1.1 200 OK
- < Server: nginx
- < Date: Sat, 01 Apr 2023 07:01:46 GMT
- < Content-Type: text/html; charset=UTF-8
- < Content-Length: 114
- < Connection: keep-alive
- < Set-Cookie: ocwe30k7bqw6=25vt0hdkpufat3r1pd658066oc; path=/; secure; HttpOnly; SameSite=Lax
- < Expires: Thu, 19 Nov 1981 08:52:00 GMT
- < Cache-Control: no-store, no-cache, must-revalidate
- < Pragma: no-cache
- < Set-Cookie: oc_sessionPassphrase=G0WOmk%2FzJwUnUxPYtCwQhZX%2B4o%2FHL%2BqtcBda3vPpq%2F9WfdxHLXpSD6JsK0dUMJgRNqvh60ZfVkNiUcizGcmjeMGB8RCn0F5QDyQgxVpvVxcHVJP9i3lMBLoUiVw7Zi2y; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Content-Security-Policy: default-src 'none';
- < X-Frame-Options: SAMEORIGIN
- < X-Robots-Tag: noindex, nofollow
- < Set-Cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
- < Set-Cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=s0lcjmt6bjlrb7m48tu4t9mqji; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: cookie_test=test; expires=Sat, 01-Apr-2023 08:01:46 GMT; Max-Age=3600
- < X-Request-Id: oms6c15bEGAGOhdPPm39
- < X-Debug-Token: oms6c15bEGAGOhdPPm39
- < Vary: Accept-Encoding
- < Strict-Transport-Security: max-age=63072000
- < X-XSS-Protection: 1; mode=block
- < X-Download-Options: noopen
- < X-Content-Type-Options: nosniff
- < X-Permitted-Cross-Domain-Policies: none
- < Referrer-Policy: no-referrer
- <
- This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.* Connection #0 to host
left intact
-
It seems like nextcloud is correctly responding there. Only curl does not know how to handle webdav resources but only the http level. I guess you have to debug your clients accordingly. For Thunderbird, the full URL to a specific calendar here is:
https://<nextcloudorigin>/remote.php/dav/calendars/<username>/<calendarname>/ -
I tried to use OneCalendar on android, it has a "add nextcloud account" option
I also tried to add to my thunderbird on PC.
When I try : curl -v https://
/remote.php/dav --user "yeah:ok"- Trying 192.168.1.33:443...
- Connected to
(192.168.1.33) port 443 (#0) - schannel: disabled automatic use of client certificate
-
- ALPN: offers http/1.1
-
- ALPN: server accepted http/1.1
-
- Server auth using Basic with user 'yeah'
-
GET /remote.php/dav HTTP/1.1
-
Host:

-
Authorization: Basic YWFydEByb3RvdmVnYXMubno6RnJhbmtpZTQ5
-
User-Agent: curl/7.83.1
-
Accept: /
-
- Mark bundle as not supporting multiuse
- < HTTP/1.1 200 OK
- < Server: nginx
- < Date: Sat, 01 Apr 2023 07:01:46 GMT
- < Content-Type: text/html; charset=UTF-8
- < Content-Length: 114
- < Connection: keep-alive
- < Set-Cookie: ocwe30k7bqw6=25vt0hdkpufat3r1pd658066oc; path=/; secure; HttpOnly; SameSite=Lax
- < Expires: Thu, 19 Nov 1981 08:52:00 GMT
- < Cache-Control: no-store, no-cache, must-revalidate
- < Pragma: no-cache
- < Set-Cookie: oc_sessionPassphrase=G0WOmk%2FzJwUnUxPYtCwQhZX%2B4o%2FHL%2BqtcBda3vPpq%2F9WfdxHLXpSD6JsK0dUMJgRNqvh60ZfVkNiUcizGcmjeMGB8RCn0F5QDyQgxVpvVxcHVJP9i3lMBLoUiVw7Zi2y; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Content-Security-Policy: default-src 'none';
- < X-Frame-Options: SAMEORIGIN
- < X-Robots-Tag: noindex, nofollow
- < Set-Cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
- < Set-Cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=jvpmjcmus4861iitorh04lk8fu; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: ocwe30k7bqw6=s0lcjmt6bjlrb7m48tu4t9mqji; path=/; secure; HttpOnly; SameSite=Lax
- < Set-Cookie: cookie_test=test; expires=Sat, 01-Apr-2023 08:01:46 GMT; Max-Age=3600
- < X-Request-Id: oms6c15bEGAGOhdPPm39
- < X-Debug-Token: oms6c15bEGAGOhdPPm39
- < Vary: Accept-Encoding
- < Strict-Transport-Security: max-age=63072000
- < X-XSS-Protection: 1; mode=block
- < X-Download-Options: noopen
- < X-Content-Type-Options: nosniff
- < X-Permitted-Cross-Domain-Policies: none
- < Referrer-Policy: no-referrer
- <
- This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.* Connection #0 to host
left intact
@AartJansen have you got https://www.davx5.com/ installed ?
Generally on Android you need that in my experience.
-
It seems like nextcloud is correctly responding there. Only curl does not know how to handle webdav resources but only the http level. I guess you have to debug your clients accordingly. For Thunderbird, the full URL to a specific calendar here is:
https://<nextcloudorigin>/remote.php/dav/calendars/<username>/<calendarname>/@nebulon Thanks for that!
I tinkered with the URL and it worked!
Ended up with
https://<nextcloudorigin>/remote.php/dav/calendars/<username>when I used the full username email address (like the nextcloud login) it stilll gave an error.
When I used the cloudron username (in my case without the @domain.com) it worked.
-
@AartJansen have you got https://www.davx5.com/ installed ?
Generally on Android you need that in my experience.
@jdaviescoates No I haven't got that. I have read that was the "only" client but the "one calendar" android app seems to support caldav too.
-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login