Microsoft Bookings Graph API gives 500 Internal Server Error when canceling a booking appointment

sonal khatri 81 Reputation points
2024-09-05T04:53:45.2166667+00:00

Hello,
Whenever I try to cancel a booking appointment, I receive a 500 Internal Server Error, but the appointment still gets cancelled.
The API is: POST /solutions/bookingBusinesses/{id}/appointments/{id}/cancel.

Error:

{

  "error": {

"code": "UnknownError",

"message": "",

"innerError": {

  "date": "2024-08-30T08:07:44",

  "request-id": "717fa982-983d-4e87-b589-05b64bd96fe7",

  "client-request-id": "717fa982-983d-4e87-b589-05b64bd96fe7"

}

  }

}

What could be the reason for this?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 46,376 Reputation points
    2024-09-05T10:25:06.9966667+00:00

    Hi @sonal khatri

    It looks like this is an error thrown by the Graph server and is not directly related to your API request.

    I recommend clicking the "feedback" button on the documentation to report this error or opening a support ticket and providing the returned request-id to the support team. They will help you troubleshoot the cause of the issue.

    e51df984-892e-423d-8e3f-ffa3deab6336

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


  2. Hitesh Pachipulusu - MSFT 3,620 Reputation points Microsoft External Staff
    2024-09-05T12:22:50.73+00:00

    Hello sonal khatri,

    Thank you for contacting Microsoft Support!

    This error is a generic server-side error indicating that something unexpected happened on the server, but it doesn’t provide specific details about what went wrong.

    Here are some potential reasons for this issue:

    1. Server-Side Bugs: There might be bugs in the server code that handle the cancellation request, causing it to fail after completing the action.
    2. Timeouts: If the server takes too long to process the request, it might timeout and return a 500 error.

    I tried to cancel an appointment using Graph API and cancelled successfully. Please check below.

    image (19)

    After following all the steps and still facing issue, I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to look into this issue and assist you better. You can raise support ticket from New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.