Cannot add nextcloud account with calendar

REPRODUCIBILITY: Every time
OS VERSION: 5.0.0.62
HARDWARE: Xperia 10 V
UI LANGUAGE: de_DE
REGRESSION: yes

DESCRIPTION:

I cannot add a nextcloud account with calendars active.

STEPS TO REPRODUCE:

  1. Add nextcloud account with calendar active, it will fail.
  2. Add nextcloud account without calendar active, it will succeed.
  3. Try to activate calendar in the nextcloud account, it fails

EXPECTED RESULT:

Calendars from nextcloud will be added and synchronized.

ACTUAL RESULT:

Failed to add the calendar, server response cannot be read

ADDITIONAL INFORMATION:

The same account is working on my 10 II. In the server log I can see that the 10 V is doing a PROPFIND / if I try to add the calendar, something that the 10 II is not doing while syncing. Adding a URL for the calendar to the advanced settings does not change anything at the behaviour.

same here with 5.0.0.62 on Xperia 10 III and Jolla C2. Nextcloud version 31.0.2 with latest apps. Used to work before, today I noticed a problem syncing a contact name, so I tried to delete and re-add the nextcloud account and it failed. Tried to add the account on the (still empty) Jolla C2 to verify, got the same error “network request was unsuccessful” while trying to add the calendar. Oh, I just tried to add the calendar some more times (5 or 6) because I wanted to look at the logs on the server, and after a few times I didn’t get an error message and could add the calendar on the C2 which is now happily syncing the calendar.

On the 10 III I tried it 30 times or so with no luck, I get the following message in the nextcloud log, so maybe it’s a race condition with authentication?

{“reqId”:“UGEyN4CxpNSijDyxK91D”,“level”:0,“time”:“2025-03-29T19:54:23+00:00”,“remoteAddr”:“xxx.xxx.xxx.xxx”,“user”:false,“app”:“webdav”,“method”:“PROPFIND”,“url”:“/remote.php/dav/”,“message”:“No public access to this resource., AppAPIAuth has not passed, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured, No ‘Authorization: Bearer’ header found. Either the client didn’t send one, or the server is mis-configured, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured”,“userAgent”:“Mozilla/5.0”,“version”:“31.0.2.1”,“exception”:{“Exception”:“Sabre\DAV\Exception\NotAuthenticated”,“Message”:“No public access to this resource., AppAPIAuth has not passed, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured, No ‘Authorization: Bearer’ header found. Either the client didn’t send one, or the server is mis-configured, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured”,“Code”:0,“Trace”:[{“file”:“/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“beforeMethod”,“class”:“Sabre\DAV\Auth\Plugin”,“type”:“->”},{“file”:“/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:456,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:49,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/nextcloud/apps/dav/lib/Server.php”,“line”:397,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:21,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/nextcloud/remote.php”,“line”:145,“args”:[“/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php”,“Line”:152,“message”:“No public access to this resource., AppAPIAuth has not passed, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured, No ‘Authorization: Bearer’ header found. Either the client didn’t send one, or the server is mis-configured, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured”,“exception”:{},“CustomMessage”:“No public access to this resource., AppAPIAuth has not passed, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured, No ‘Authorization: Bearer’ header found. Either the client didn’t send one, or the server is mis-configured, No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured”}}