Where Are My Calendars ?!

CALDAV issue: Calendars can only be fetched after the user logs in to the Nextcloud interface and opens the calendar page at least once
After the update to Version 28.0.1 / Version 28.0.0 (21-2023 / 12-2023), a CALDAV issue arose.
both methods :

const client = await createDAVClient({
      serverUrl: nextcloudBaseUrl,
      credentials: {
        username: dataEventNextCloud.email,
        password: dataEventNextCloud.password,
      },
      authMethod: 'Basic',
      defaultAccountType: 'caldav',
    });
    const calendars = await client.fetchCalendars();

AND

    const client = new DAVClient({
      serverUrl: nextcloudBaseUrl,
      credentials: {
        username: dataEventNextCloud.email,
        password: dataEventNextCloud.password,
      },
      authMethod: 'Basic',
      defaultAccountType: 'caldav',
    });
    await client.login();
    const calendars = await client.fetchCalendars();

-before logging in in the nexcloud interface and oppening the calendar page :
returns the client successfully , but returns calendars as empty array !

-after logging in in the nexcloud interface and oppening the calendar page :
returns both client and calendars as expected

(I am working on the specific “personal” calendar , so i tried to create it before fetching calendars but i get this error message: "The resource you tried to create already exists’ . So apparently it exists in the nextcloud db but it’s not accessible)
what should I do ? Are there some config params that could help please ?

No idea, could be a bug, but you’re also using a third-party WebDAV/CalDAV client it looks like (you didn’t specify but a search turned up tsdav).

  • What do server logs indicate during the empty connections?
  • Can you reproduce the behavior in some other client (i.e. not tsdav; maybe a conventional CalDav client)?
  • Check the version of tsdav you’re using is up-to-date[1]

[1] tsdav/CHANGELOG.md at master · natelindev/tsdav · GitHub

1 Like

Thanks for your reply

  • error : could not find calendars
  • It’s really hard to find another client ! i did some research but i didn’t found. btw thunderbird application is synchronized to nextcloud , but after the update it’s not , when you enter your credentials it logs just the same error
  • the virsion of tsdav is already up to date

All known (reported not yet patched pending release) CalDAV related issues in NC28 can be found here.

1 Like