cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-3572] Slots API getting a blank response (managed events)

Open milospuac opened this issue 1 year ago • 1 comments

From SyncLinear.com | CAL-3572

milospuac avatar Apr 29 '24 13:04 milospuac

To address the issue with the Slots API returning a blank response for managed events, consider the following potential causes and solutions:

  1. Date and Time Zone Handling: Ensure dayjs is correctly handling inviteeDate and organizerTimeZone. Incorrect settings can prevent slot generation. A patch for dayjs related issues is available, which might be relevant.

  2. Minimum Booking Notice: Verify the minimumBookingNotice is set appropriately and calculations correctly account for the current time and time zone.

  3. Working Hours and Overrides: Check that working hours are defined for the inviteeDate and that no date overrides are blocking potential slots.

  4. Event Length and Frequency: Make sure the eventLength and frequency fit within the defined working hours and respect any overrides.

  5. DST Calculations: Confirm DST calculations for organizerDSTDiff and inviteeDSTDiff are accurate, especially around DST change dates.

Review the slots.ts file for implementation details and ensure all configurations are correct. If the issue persists, more specific error details or server logs could help diagnose the problem further. Additionally, a similar issue, [CAL-3186] booking API returning empty response, might offer insights or solutions.

Details

Sources


About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

dosubot[bot] avatar Apr 29 '24 13:04 dosubot[bot]

When creating a managed event type , a template is created and the template is cloned for each assigned user. The copy assigned to user has availability set and is bookable, the original template is not bookable ( as its a template ).

Slots api returns response accordingly as per user schedule when trying to access a users instance of managed event. It returns empty response when passing template's eventId. It seems to be match the expected behaviour .

Shaik-Sirajuddin avatar May 23 '24 03:05 Shaik-Sirajuddin

/team/pro/managetest

a link to template opens booking page while showing no available slots I think it should redirect to not found or show list of bookable team members.

Shaik-Sirajuddin avatar May 23 '24 03:05 Shaik-Sirajuddin

There have been reports of empty slots in event types other than managed, including but not limited to multiple duration events

alishaz-polymath avatar Aug 19 '24 14:08 alishaz-polymath

Finally fixed!

alishaz-polymath avatar Sep 25 '24 11:09 alishaz-polymath