I‘m also stuck not being able to use <Cal.com> as ...
# caldav
s
I‘m also stuck not being able to use Cal.com as the CalDAV implementation of Kerio seems not to work well with it. Would be great if the team could spend some time, love and attention to it, as I guess many other OpenSource lovers chose not only Cal.com because of the license, but also use other open CalDAV-based calendars, which you could make me soon a happy (paying) user.
z
Hi @Sascha Foerster can you provide more context about your issue?
s
@zomars Yes, I added it some time ago here: https://github.com/calcom/cal.com/issues/956#issuecomment-1146800074 and here: https://github.com/calcom/cal.com/issues/956#issuecomment-1100640807 (but with older versions). I go these steps:
I add my kerio-kalender with CalDav. It get’s recognized without issue. It even sees all the other calenders of my coworkers.
Then I check my “time table”, which I set up myself. I then click on troubleshoot.
It says, that I have no blocking events in my calendar for that day.
When I check the logs now, there is no error message:
message has been deleted
Even though there is at least one blocking event.
When I type in the API-call from the log, I get this
Copy code
{
  "busy": [],
  "timeZone": "Europe/Amsterdam",
  "workingHours": [
    {
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "startTime": 480,
      "endTime": 960
    }
  ],
  "currentSeats": null
}
z
For some reason that event is not being count as "busy"
In google Calendar you can mark a calendar event as busy or free. Do you know if this specific calendar can do this?
1
s
I restart with “NEXT_PUBLIC_DEBUG=1” in my .env
1|calcom | @calcom/web:start: prisma:query SELECT "public"."SelectedCalendar"."userId", "public"."SelectedCalendar"."integration", "public"."SelectedCalendar"."externalId" FROM "public"."SelectedCalendar" WHERE "public"."SelectedCalendar"."userId" IN ($1) OFFSET $2
1|calcom | @calcom/web:start: prisma:query SELECT "public"."Schedule"."id", "public"."Schedule"."timeZone", "public"."Schedule"."userId" FROM "public"."Schedule" WHERE "public"."Schedule"."userId" IN ($1) OFFSET $2
1|calcom | @calcom/web:start: prisma:query SELECT "public"."Availability"."id", "public"."Availability"."userId", "public"."Availability"."eventTypeId", "public"."Availability"."days", "public"."Availability"."startTime", "public"."Availability"."endTime", "public"."Availability"."date", "public"."Availability"."scheduleId" FROM "public"."Availability" WHERE "public"."Availability"."scheduleId" IN ($1,$2) OFFSET $3
1|calcom | @calcom/web:start: prisma:query SELECT "public"."Booking"."id", "public"."Booking"."startTime", "public"."Booking"."endTime" FROM "public"."Booking" WHERE ("public"."Booking"."userId" = $1 AND "public"."Booking"."startTime" >= $2 AND "public"."Booking"."endTime" <= $3 AND "public"."Booking"."status" IN ($4)) OFFSET $5
1|calcom | @calcom/web:start: [OK][0.0137s] GET '/api/availability/saschafoerster?dateFrom=2022-07-23T22:00:00Z&dateTo=2022-07-24T21:59:59Z'
But I guess nothing special in it.
z
I'm more concerned in the response from CalDav itself
s
I try a longer period:
… api/availability/saschafoerster?dateFrom=2022-07-10T220000Z&dateTo=2022-07-24T215959Z
Copy code
{
  "busy": [],
  "timeZone": "Europe/Amsterdam",
  "workingHours": [
    {
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "startTime": 480,
      "endTime": 960
    }
  ],
  "currentSeats": null
}
Same event, in the webinterface.
Beschäftigt = Busy
z
We're using
tsdav
to fetch all CalDav related calendars here. So this might be an upstream problem
s
I guess so. When I check my availability with MacOS Calender, which is using CalDav to connect to Kerio I see it correctly:
message has been deleted
I also tried to activate all the calenders, that I can see, with their blocking events. But still, everything stays empty.
If I can help somehow debug this, I am here to help.
[Error]  << query #2 <http://viewer.me|viewer.me>
Object
context: Object
Keine Eigenschaften
Object Prototyp
elapsedMs: 391
input: undefined
result: TRPCClientError: The operation was aborted.
Object Prototyp
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:136030)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:136498)
p (_app-4cef47a0602b3a2f.js:1:10532)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:10553)
onDone (_app-4cef47a0602b3a2f.js:1:12283)
done (_app-4cef47a0602b3a2f.js:1:11513)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:13829)
t (_app-4cef47a0602b3a2f.js:1:211939)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:198762)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:221806)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:221488)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:212921)
(anonyme Funktion) (_app-4cef47a0602b3a2f.js:1:230585)
Gu (framework-dbb4adbd2655d20c.js:1:92950)
Ju (framework-dbb4adbd2655d20c.js:1:93147)
ws (framework-dbb4adbd2655d20c.js:1:112985)
(anonyme Funktion) (framework-dbb4adbd2655d20c.js:1:110375)
S (framework-dbb4adbd2655d20c.js:1:131185)
T (framework-dbb4adbd2655d20c.js:1:131719)
z
I'll @Nathaniel Lin who is the creator of tsdav. He may provide us with some context on how to debug this properly.
👍 1
❤️ 1
s
@Nathaniel Lin @zomars Just for your information: with the newest pversion 1.7.7. I get this error back again: