CalDav is not working on 27.1.6

Hello, I installed the latest Nextcloud on my Ubuntu today. Everything was fine until I installed the Calendar app. It works all fine on web but when I wanted to sync it to my iOS, it was giving “invalid credentials” error. I tried syncing with the Nextcloud app and adding my account manually to the Calendar but nothing works. I also tried it on my MacOS and it’s “invalid credentials” again even though its accurate.

I visited /.well-known/caldav and logged in with the same credentials.

Heres the logs that occur when I click login on my MacOS:

{"reqId":"WD8XcgT9W57cYMHCSN7W","level":0,"time":"2024-02-29T14:30:09+00:00","remoteAddr":"127.0.0.1","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"No public access to this resource., 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":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"Sabre\\DAV\\Exception\\NotAuthenticated","Message":"No public access to this resource., 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":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","Line":152,"message":"No public access to this resource., 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., 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"}}
{"reqId":"9S1tfDyNltj7npwOX7lE","level":1,"time":"2024-02-29T14:30:09+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"IP address throttled because it reached the attempts limit in the last 30 minutes [action: login, delay: 400, ip: 127.0.0.1]","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","data":[]}
{"reqId":"9S1tfDyNltj7npwOX7lE","level":0,"time":"2024-02-29T14:30:10+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":538,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":438,"function":"isTokenPassword","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":114,"function":"logClientIn","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php","line":103,"function":"validateUserPass","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":232,"function":"check","class":"Sabre\\DAV\\Auth\\Backend\\AbstractBasic","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":139,"function":"auth","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":179,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":155,"message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","exception":{},"CustomMessage":"Token is not valid: Token is too short for a generated token, should be the password during basic auth"}}
{"reqId":"9S1tfDyNltj7npwOX7lE","level":0,"time":"2024-02-29T14:30:10+00:00","remoteAddr":"127.0.0.1","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"Session token is invalid because it does not exist","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":792,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":352,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":452,"function":"login","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":114,"function":"logClientIn","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php","line":103,"function":"validateUserPass","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":232,"function":"check","class":"Sabre\\DAV\\Auth\\Backend\\AbstractBasic","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":139,"function":"auth","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":179,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":155,"message":"Session token is invalid because it does not exist","user":"batinyuksel","exception":{},"CustomMessage":"Session token is invalid because it does not exist"}}
{"reqId":"9S1tfDyNltj7npwOX7lE","level":0,"time":"2024-02-29T14:30:11+00:00","remoteAddr":"127.0.0.1","user":"batinyuksel","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"File not found: batinyuksel in 'root'","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File not found: batinyuksel in 'root'","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Tree.php","line":70,"function":"getChild","class":"Sabre\\DAV\\SimpleCollection","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/SimpleCollection.php","Line":97,"message":"File not found: batinyuksel in 'root'","exception":{},"CustomMessage":"File not found: batinyuksel in 'root'"}}
{"reqId":"pATYimXlcuoKDIkEhXNv","level":0,"time":"2024-02-29T14:30:12+00:00","remoteAddr":"127.0.0.1","user":"batinyuksel","app":"core","method":"PROPFIND","url":"/","message":"Session token is invalid because it does not exist","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token does not exist: token does not exist","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":792,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":257,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":232,"function":"validateSession","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":228,"function":"getUser","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/App/AppManager.php","line":198,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":126,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_User.php","line":128,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":770,"function":"setupBackends","class":"OC_User","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":1196,"function":"init","class":"OC","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/index.php","line":36,"args":["/snap/nextcloud/40228/htdocs/lib/base.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":177,"Previous":{"Exception":"OCP\\AppFramework\\Db\\DoesNotExistException","Message":"token does not exist","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","line":168,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenMapper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":792,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":257,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":232,"function":"validateSession","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":228,"function":"getUser","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/App/AppManager.php","line":198,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":126,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_User.php","line":128,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":770,"function":"setupBackends","class":"OC_User","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":1196,"function":"init","class":"OC","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/index.php","line":36,"args":["/snap/nextcloud/40228/htdocs/lib/base.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenMapper.php","Line":89},"message":"Session token is invalid because it does not exist","user":null,"exception":{},"CustomMessage":"Session token is invalid because it does not exist"}}
{"reqId":"pATYimXlcuoKDIkEhXNv","level":0,"time":"2024-02-29T14:30:12+00:00","remoteAddr":"127.0.0.1","user":"batinyuksel","app":"no app in context","method":"PROPFIND","url":"/","message":"Session token invalidated before logout","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","data":{"user":"batinyuksel"}}
{"reqId":"pATYimXlcuoKDIkEhXNv","level":0,"time":"2024-02-29T14:30:12+00:00","remoteAddr":"127.0.0.1","user":"batinyuksel","app":"no app in context","method":"PROPFIND","url":"/","message":"Logging out","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","data":{"user":"batinyuksel"}}

Another example of logs:

{"reqId":"gAUYh473zPzQziwqo05D","level":0,"time":"2024-02-29T14:53:43+00:00","remoteAddr":"195.155.170.230","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"No public access to this resource., 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":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"Sabre\\DAV\\Exception\\NotAuthenticated","Message":"No public access to this resource., 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":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","Line":152,"message":"No public access to this resource., 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., 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"}}
{"reqId":"D16KZj9H52UpZem1Z2Lm","level":0,"time":"2024-02-29T14:53:43+00:00","remoteAddr":"195.155.170.230","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":538,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":438,"function":"isTokenPassword","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":114,"function":"logClientIn","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php","line":103,"function":"validateUserPass","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":232,"function":"check","class":"Sabre\\DAV\\Auth\\Backend\\AbstractBasic","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":139,"function":"auth","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":179,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":155,"message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","exception":{},"CustomMessage":"Token is not valid: Token is too short for a generated token, should be the password during basic auth"}}
{"reqId":"D16KZj9H52UpZem1Z2Lm","level":0,"time":"2024-02-29T14:53:43+00:00","remoteAddr":"195.155.170.230","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"Session token is invalid because it does not exist","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":792,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":352,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":452,"function":"login","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":114,"function":"logClientIn","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php","line":103,"function":"validateUserPass","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":232,"function":"check","class":"Sabre\\DAV\\Auth\\Backend\\AbstractBasic","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php","line":139,"function":"auth","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":179,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":155,"message":"Session token is invalid because it does not exist","user":"batinyuksel","exception":{},"CustomMessage":"Session token is invalid because it does not exist"}}
{"reqId":"D16KZj9H52UpZem1Z2Lm","level":0,"time":"2024-02-29T14:53:44+00:00","remoteAddr":"195.155.170.230","user":"batinyuksel","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/batinyuksel/","message":"File not found: batinyuksel in 'root'","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File not found: batinyuksel in 'root'","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Tree.php","line":70,"function":"getChild","class":"Sabre\\DAV\\SimpleCollection","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php","line":365,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/remote.php","line":172,"args":["/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/SimpleCollection.php","Line":97,"message":"File not found: batinyuksel in 'root'","exception":{},"CustomMessage":"File not found: batinyuksel in 'root'"}}
{"reqId":"E26EitmASkgcDpljjrFk","level":0,"time":"2024-02-29T14:53:45+00:00","remoteAddr":"195.155.170.230","user":"batinyuksel","app":"core","method":"PROPFIND","url":"/","message":"Session token is invalid because it does not exist","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token does not exist: token does not exist","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":792,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":257,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":232,"function":"validateSession","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":228,"function":"getUser","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/App/AppManager.php","line":198,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":126,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_User.php","line":128,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":770,"function":"setupBackends","class":"OC_User","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":1196,"function":"init","class":"OC","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/index.php","line":36,"args":["/snap/nextcloud/40228/htdocs/lib/base.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":177,"Previous":{"Exception":"OCP\\AppFramework\\Db\\DoesNotExistException","Message":"token does not exist","Code":0,"Trace":[{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php","line":168,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenMapper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":792,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":257,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/40228/htdocs/lib/private/User/Session.php","line":232,"function":"validateSession","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":228,"function":"getUser","class":"OC\\User\\Session","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/App/AppManager.php","line":198,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php","line":126,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_User.php","line":128,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":770,"function":"setupBackends","class":"OC_User","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/lib/base.php","line":1196,"function":"init","class":"OC","type":"::"},{"file":"/snap/nextcloud/40228/htdocs/index.php","line":36,"args":["/snap/nextcloud/40228/htdocs/lib/base.php"],"function":"require_once"}],"File":"/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenMapper.php","Line":89},"message":"Session token is invalid because it does not exist","user":null,"exception":{},"CustomMessage":"Session token is invalid because it does not exist"}}
{"reqId":"E26EitmASkgcDpljjrFk","level":0,"time":"2024-02-29T14:53:45+00:00","remoteAddr":"195.155.170.230","user":"batinyuksel","app":"no app in context","method":"PROPFIND","url":"/","message":"Session token invalidated before logout","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","data":{"user":"batinyuksel"}}
{"reqId":"E26EitmASkgcDpljjrFk","level":0,"time":"2024-02-29T14:53:45+00:00","remoteAddr":"195.155.170.230","user":"batinyuksel","app":"no app in context","method":"PROPFIND","url":"/","message":"Logging out","userAgent":"macOS/14.1.1 (23B81) accountsd/1.0","version":"27.1.6.2","data":{"user":"batinyuksel"}}

Heres what happens if i sync the calendar from Nextcloud app by installing a profile on my iOS.

{
  "reqId": "gAUYh473zPzQziwqo05D",
  "level": 0,
  "time": "2024-02-29T14:53:43+00:00",
  "remoteAddr": "195.155.170.230",
  "user": "--",
  "app": "webdav",
  "method": "PROPFIND",
  "url": "/remote.php/dav/batinyuksel/",
  "message": "No public access to this resource., 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": "macOS/14.1.1 (23B81) accountsd/1.0",
  "version": "27.1.6.2",
  "exception": {
    "Exception": "Sabre\\DAV\\Exception\\NotAuthenticated",
    "Message": "No public access to this resource., 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": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "beforeMethod",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 456,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php",
        "line": 365,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/remote.php",
        "line": 172,
        "args": [
          "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
    "Line": 152,
    "message": "No public access to this resource., 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., 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"
  }
}
{
  "reqId": "D16KZj9H52UpZem1Z2Lm",
  "level": 0,
  "time": "2024-02-29T14:53:43+00:00",
  "remoteAddr": "195.155.170.230",
  "user": "--",
  "app": "no app in context",
  "method": "PROPFIND",
  "url": "/remote.php/dav/batinyuksel/",
  "message": "Token is not valid: Token is too short for a generated token, should be the password during basic auth",
  "userAgent": "macOS/14.1.1 (23B81) accountsd/1.0",
  "version": "27.1.6.2",
  "exception": {
    "Exception": "OC\\Authentication\\Exceptions\\InvalidTokenException",
    "Message": "Token is too short for a generated token, should be the password during basic auth",
    "Code": 0,
    "Trace": [
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php",
        "line": 133,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 538,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\Manager",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 438,
        "function": "isTokenPassword",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php",
        "line": 114,
        "function": "logClientIn",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php",
        "line": 103,
        "function": "validateUserPass",
        "class": "OCA\\DAV\\Connector\\Sabre\\Auth",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php",
        "line": 232,
        "function": "check",
        "class": "Sabre\\DAV\\Auth\\Backend\\AbstractBasic",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php",
        "line": 139,
        "function": "auth",
        "class": "OCA\\DAV\\Connector\\Sabre\\Auth",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 179,
        "function": "check",
        "class": "OCA\\DAV\\Connector\\Sabre\\Auth",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 135,
        "function": "check",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "beforeMethod",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 456,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php",
        "line": 365,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/remote.php",
        "line": 172,
        "args": [
          "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
    "Line": 155,
    "message": "Token is not valid: Token is too short for a generated token, should be the password during basic auth",
    "exception": {},
    "CustomMessage": "Token is not valid: Token is too short for a generated token, should be the password during basic auth"
  }
}
{
  "reqId": "D16KZj9H52UpZem1Z2Lm",
  "level": 0,
  "time": "2024-02-29T14:53:43+00:00",
  "remoteAddr": "195.155.170.230",
  "user": "--",
  "app": "core",
  "method": "PROPFIND",
  "url": "/remote.php/dav/batinyuksel/",
  "message": "Session token is invalid because it does not exist",
  "userAgent": "macOS/14.1.1 (23B81) accountsd/1.0",
  "version": "27.1.6.2",
  "exception": {
    "Exception": "OC\\Authentication\\Exceptions\\InvalidTokenException",
    "Message": "Token is too short for a generated token, should be the password during basic auth",
    "Code": 0,
    "Trace": [
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php",
        "line": 133,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 792,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\Manager",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 352,
        "function": "validateToken",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 452,
        "function": "login",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php",
        "line": 114,
        "function": "logClientIn",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php",
        "line": 103,
        "function": "validateUserPass",
        "class": "OCA\\DAV\\Connector\\Sabre\\Auth",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php",
        "line": 232,
        "function": "check",
        "class": "Sabre\\DAV\\Auth\\Backend\\AbstractBasic",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Connector/Sabre/Auth.php",
        "line": 139,
        "function": "auth",
        "class": "OCA\\DAV\\Connector\\Sabre\\Auth",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 179,
        "function": "check",
        "class": "OCA\\DAV\\Connector\\Sabre\\Auth",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 135,
        "function": "check",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "beforeMethod",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 456,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php",
        "line": 365,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/remote.php",
        "line": 172,
        "args": [
          "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
    "Line": 155,
    "message": "Session token is invalid because it does not exist",
    "user": "batinyuksel",
    "exception": {},
    "CustomMessage": "Session token is invalid because it does not exist"
  }
}
{
  "reqId": "D16KZj9H52UpZem1Z2Lm",
  "level": 0,
  "time": "2024-02-29T14:53:44+00:00",
  "remoteAddr": "195.155.170.230",
  "user": "batinyuksel",
  "app": "webdav",
  "method": "PROPFIND",
  "url": "/remote.php/dav/batinyuksel/",
  "message": "File not found: batinyuksel in 'root'",
  "userAgent": "macOS/14.1.1 (23B81) accountsd/1.0",
  "version": "27.1.6.2",
  "exception": {
    "Exception": "Sabre\\DAV\\Exception\\NotFound",
    "Message": "File not found: batinyuksel in 'root'",
    "Code": 0,
    "Trace": [
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line": 70,
        "function": "getChild",
        "class": "Sabre\\DAV\\SimpleCollection",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 971,
        "function": "getNodeForPath",
        "class": "Sabre\\DAV\\Tree",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1662,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1647,
        "function": "writeMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 346,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPropFind",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/lib/Server.php",
        "line": 365,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/remote.php",
        "line": 172,
        "args": [
          "/snap/nextcloud/40228/htdocs/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/snap/nextcloud/40228/htdocs/3rdparty/sabre/dav/lib/DAV/SimpleCollection.php",
    "Line": 97,
    "message": "File not found: batinyuksel in 'root'",
    "exception": {},
    "CustomMessage": "File not found: batinyuksel in 'root'"
  }
}
{
  "reqId": "E26EitmASkgcDpljjrFk",
  "level": 0,
  "time": "2024-02-29T14:53:45+00:00",
  "remoteAddr": "195.155.170.230",
  "user": "batinyuksel",
  "app": "core",
  "method": "PROPFIND",
  "url": "/",
  "message": "Session token is invalid because it does not exist",
  "userAgent": "macOS/14.1.1 (23B81) accountsd/1.0",
  "version": "27.1.6.2",
  "exception": {
    "Exception": "OC\\Authentication\\Exceptions\\InvalidTokenException",
    "Message": "Token does not exist: token does not exist",
    "Code": 0,
    "Trace": [
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php",
        "line": 133,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 792,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\Manager",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 257,
        "function": "validateToken",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
        "line": 232,
        "function": "validateSession",
        "class": "OC\\User\\Session",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php",
        "line": 228,
        "function": "getUser",
        "class": "OC\\User\\Session",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/App/AppManager.php",
        "line": 198,
        "function": "getEnabledApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php",
        "line": 126,
        "function": "loadApps",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_User.php",
        "line": 128,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/base.php",
        "line": 770,
        "function": "setupBackends",
        "class": "OC_User",
        "type": "::"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/lib/base.php",
        "line": 1196,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/snap/nextcloud/40228/htdocs/index.php",
        "line": 36,
        "args": [
          "/snap/nextcloud/40228/htdocs/lib/base.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
    "Line": 177,
    "Previous": {
      "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
      "Message": "token does not exist",
      "Code": 0,
      "Trace": [
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
          "line": 168,
          "function": "getToken",
          "class": "OC\\Authentication\\Token\\PublicKeyTokenMapper",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/Manager.php",
          "line": 133,
          "function": "getToken",
          "class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
          "line": 792,
          "function": "getToken",
          "class": "OC\\Authentication\\Token\\Manager",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
          "line": 257,
          "function": "validateToken",
          "class": "OC\\User\\Session",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/User/Session.php",
          "line": 232,
          "function": "validateSession",
          "class": "OC\\User\\Session",
          "type": "->"
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php",
          "line": 228,
          "function": "getUser",
          "class": "OC\\User\\Session",
          "type": "->"
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/App/AppManager.php",
          "line": 198,
          "function": "getEnabledApps",
          "class": "OC_App",
          "type": "::"
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_App.php",
          "line": 126,
          "function": "loadApps",
          "class": "OC\\App\\AppManager",
          "type": "->"
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/private/legacy/OC_User.php",
          "line": 128,
          "function": "loadApps",
          "class": "OC_App",
          "type": "::"
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/base.php",
          "line": 770,
          "function": "setupBackends",
          "class": "OC_User",
          "type": "::"
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/lib/base.php",
          "line": 1196,
          "function": "init",
          "class": "OC",
          "type": "::"
        },
        {
          "file": "/snap/nextcloud/40228/htdocs/index.php",
          "line": 36,
          "args": [
            "/snap/nextcloud/40228/htdocs/lib/base.php"
          ],
          "function": "require_once"
        }
      ],
      "File": "/snap/nextcloud/40228/htdocs/lib/private/Authentication/Token/PublicKeyTokenMapper.php",
      "Line": 89
    },
    "message": "Session token is invalid because it does not exist",
    "user": null,
    "exception": {},
    "CustomMessage": "Session token is invalid because it does not exist"
  }
}
{
  "reqId": "E26EitmASkgcDpljjrFk",
  "level": 0,
  "time": "2024-02-29T14:53:45+00:00",
  "remoteAddr": "195.155.170.230",
  "user": "batinyuksel",
  "app": "no app in context",
  "method": "PROPFIND",
  "url": "/",
  "message": "Session token invalidated before logout",
  "userAgent": "macOS/14.1.1 (23B81) accountsd/1.0",
  "version": "27.1.6.2",
  "data": {
    "user": "batinyuksel"
  }
}
{
  "reqId": "E26EitmASkgcDpljjrFk",
  "level": 0,
  "time": "2024-02-29T14:53:45+00:00",
  "remoteAddr": "195.155.170.230",
  "user": "batinyuksel",
  "app": "no app in context",
  "method": "PROPFIND",
  "url": "/",
  "message": "Logging out",
  "userAgent": "macOS/14.1.1 (23B81) accountsd/1.0",
  "version": "27.1.6.2",
  "data": {
    "user": "batinyuksel"
  }
}

It is not using the credentials for some reason. Do you use two factor authentication (if yes, then you probably need to use an app password)?

No, I don’t. None of our users use 2FA. Can it be something related to my NGINX config? Like allowing the authorizaton header or so? I have no other idea why this could happen.

Yes, it was my Nginx config… After adding CORS, it works all fine but only if you add it manually. Not if you install the profile from Nextcloud app on iOS.

server {
        listen 80;

        # If you want to also support ipv6
        listen [::]:80;

        client_max_body_size 5G;
        server_name drive.totmedya.com.tr;
        real_ip_header CF-Connecting-IP;

        # Global Access-Control headers
        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PROPFIND, PROPPATCH, REPORT, PUT, MOVE, DELETE, LOCK, UNLOCK";
        add_header Access-Control-Allow-Headers "User-Agent, Authorization, Content-type, Depth, If-match, If-None-Match, Lock-Token, Timeout, Destination, Overwrite, Prefer, X-client, X-Requested-With";
        add_header Access-Control-Expose-Headers "Etag, Preference-Applied";


        location / {
                proxy_pass_header   Server;
                proxy_set_header    Host $host;
                proxy_set_header    X-Real-IP $remote_addr;
                proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header    X-Forwarded-Proto $scheme;
                proxy_pass          http://127.0.0.1:81;
        }

        location = /.well-known/caldav {
                return 301 https://$host/remote.php/dav$request_uri;
        }
}

Your Nginx config is for HTTP → HTTP but your redirect here is for HTTPS.

Can you elaborate on where you’re terminating HTTPS?