Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cal.com API Returning 500 Internal Server Error and Empty Slots Data #18313

Open
advhha opened this issue Dec 20, 2024 · 0 comments
Open

Cal.com API Returning 500 Internal Server Error and Empty Slots Data #18313

advhha opened this issue Dec 20, 2024 · 0 comments
Labels
api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync

Comments

@advhha
Copy link

advhha commented Dec 20, 2024

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.

@advhha advhha changed the title Issue on docs Cal.com API Returning 500 Internal Server Error and Empty Slots Data Dec 20, 2024
@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working labels Dec 20, 2024
@Praashh Praashh added the Medium priority Created by Linear-GitHub Sync label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants