Http request error 500

Im using a scenario where I get the Error : 500 internal server error

I’ve tried everything to fix it.. hope someone can help

The api key is set correctly :slight_smile: .. just removed here :slight_smile:



Im using it for retellai

1 Like

Hey Thomas,

is 3.datetime a date type variable already? Also what is this +2 at the end of the formula for?

Can you check the API documentation and what the expected format for start and end time is?

@Thomas_Koch_Nielsen
can you pass the start time and end time as timestamp.
please try and let us know

Best regards,
Digipanda Consulting Pvt. Ltd
@digiPanda_Automation

thanx.. it was the +2 the made it not work.. I thought it had to be there because of the timezone :slight_smile:

But in my next http in the same… Im sending this

https://api.cal.com/v2/calendars/busy-times?loggedInUsersTz=Europe%2FCopenhagen&calendarsToLoad[0][credentialId]=2794160&calendarsToLoad[0]

and getting this error

Error: 400 Bad Request

  • {“status”:“error”,“timestamp”:“2025-07-09T10:01:21.259Z”,“path”:“/v2/calendars/busy-times?loggedInUsersTz=Europe%2FCopenhagen&calendarsToLoad%5B0%5D%5BcredentialId%5D=2794160&calendarsToLoad%5B1%5D=&dateFrom=2025-07-11&dateTo=2025-07-12”,“error”:{“code”:“BadRequestException”,“message”:“Bad Request Exception”,“details”:{“errors”:[{“target”:{“loggedInUsersTz”:“Europe/Copenhagen”,“calendarsToLoad”:[{“credentialId”:2794160},“”],“dateFrom”:“2025-07-11”,“dateTo”:“2025-07-12”},“value”:[{“credentialId”:2794160},“”],“property”:“calendarsToLoad”,“children”:[{“target”:[{“credentialId”:2794160},“”],“value”:{“credentialId”:2794160},“property”:“0”,“children”:[{“target”:{“credentialId”:2794160},“property”:“externalId”,“children”:,“constraints”:{“isString”:“externalId must be a string”}}]},{“target”:[{“credentialId”:2794160},“”],“value”:“”,“property”:“1”,“children”:,“constraints”:{“nestedValidation”:“each value in nested property calendarsToLoad must be either object or array”}}]}]}}}

i figured it all out.. thanx to all :slight_smile:

1 Like