Cal.com API Returning 500 Internal Server Error and Empty Slots Data #18313
Labels
api
area: API, enterprise API, access token, OAuth
🐛 bug
Something isn't working
Medium priority
Created by Linear-GitHub Sync
Path: /api-reference/v1/errors
Hello,
I am experiencing an issue with the Cal.com API where I consistently receive a 500 Internal Server Error when attempting to retrieve available time slots for a specific eventTypeId. Below is an example of the request I am sending:
API Endpoint: https://api.cal.com/v1/slots?eventTypeId=1472665&startTime=2024-10-10&endTime=2024-10-10&timeZone=europe%2Flondon&apiKey=<my_api_key>
Expected Behavior: The API should return available slots for the given date, event type, and time zone.
Observed Behavior: The response returns an empty "slots": {} object, or occasionally, the API responds with a 500 Internal Server Error. This error persists even though the eventTypeId is valid, and the provided API key has the necessary permissions. Additionally, I have verified that time slots are configured for the specified event type and date within the Cal.com dashboard.
Details:
When testing without any startTime or endTime parameters, the API sometimes responds correctly, which indicates the time range filtering may be contributing to the issue.
I have ensured the timeZone parameter is encoded correctly as europe%2Flondon, and the date format aligns with ISO 8601 (YYYY-MM-DD).
Despite providing valid input, the API intermittently fails, with the status code 500, suggesting a potential issue on the server side.
Could you please investigate why the API is returning an empty slots object and occasionally a 500 Internal Server Error? Any guidance or fixes would be greatly appreciated. Let me know if additional details or logs are required.
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: