https://retellai.com/?utm_source=discord&utm_medium=seo logo
Book Appointment fails (Axios Error) when there is...
# ❓・bug-report
a
Book Appointment fails (Axios Error) when there is no availability in the calendar instead of saying "There is no availability". Here are the parameters sent by Retell AI to cal.com: Tool Invocation: book_appointment_cal tool_call_id: tool_call_f4498f { "time": "2025-10-26T09:00:00+01:00", "name": "Bruno", "email": "abdoul@yopmail.com", "timezone": "Europe/Paris" } Here is the error message returned by cal.com: tool_call_id: tool_call_f4498f {"error":"Error calling Cal Booking API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{"message":"1","data":null},"no_available_users_found_error"]"} The good news is that the API fails when there is no availability in the calendar, but if I delete the existing booking, then I retry the booking, then then the same API with same parameters works. That’s really odd.
c
can you send a call id when this happens
a
Yes sure. call_17266bec333ab796ee8096991f9 Thanks for your help
Hi Guys, I am still facing the same issue, even today Call ID : call_3449f062ede4ba037727f7b5682 Tool Invocation: book_appointment_cal tool_call_id: tool_call_edb110 { "time": "2025-10-28T16:00:00Z", "name": "Bruno", "email": "abdoul8@orange.fr", "timezone": "Europe/Paris" } Tool Result tool_call_id: tool_call_edb110 {"error":"Error calling Cal Booking API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{\"status\":\"1\",\"timestamp\":\"2\",\"path\":\"3\",\"error\":\"4\"},\"error\",\"2025-10-28T14:43:17.972Z\",\"/v2/bookings\",{\"code\":\"5\",\"message\":\"6\",\"details\":\"7\"},\"BadRequestException\",\"User either already has booking at this time or is not available\",{\"message\":\"6\",\"error\":\"8\",\"statusCode\":400},\"Bad Request\"]"}
o
Hello @abdoul_a_94 , from this i can see that this time was already booked and it's not available try another time
a
Hello @Omar Ashraf | Community Lead I know this time is already booked (actually I was testing what happens when a time is already booked). I am upset to see that cal.com responds with an error message instead of saying this time is already booked. When I try with external API I am not getting such weird message.
Can anyone help me please ?
o
I did try the external API before and it also return an error when it's already booked
a
Thanks Omar. Do you know by when cal.com will fix this issue. I can't imagine they will let such issue for a while
o
This is not an issue it's normal , if you are trying to book an already booked appointment it will give an error you need to check availability first before booking
a
@Omar Ashraf | Community Lead the duty of a booking system is to tell the user when an schdule is already booked, not to send "Axios Error: error code: ERR_BAD_REQUEST ..." the meaning of "Axios Error" is completely different and weird. I can't accept such error.
o
Here you are trying to book the appointment directly not checking the availability of it and if you check the error above you will find : ,"User either already has booking at this time or is not available" which is normal error you are trying to book something that can't be booked
b
Hi @abdoul_a_94 have you fixed this?