Microsoft graph api list events returns internal server error.

Tsai Yunda 0 Reputation points
2024-03-01T02:37:41.4933333+00:00

Describe the bug Microsoft graph api list events returns internal server error.

Status Code: InternalServerError Microsoft.Graph.ServiceException: Code: ErrorInternalServerError Message: An internal server error occurred. The operation failed. ClientRequestId: 8ca5f68d-1c1d-4b56-af7f-3791f4a24d30

To Reproduce keyword = "123" emailAddress = "test@example.com"; filterString = $"contains(Body/Content, '{keyword}')" graphServiceClient.Users[emailAddress] .Calendar .Events .Request() .Filter(filterString) .GetAsync();

Expected behavior Return CalendarEventsCollectionPage filtered on the Body/Content fields.

Screenshots Screenshot 2024-02-21 065232

Desktop (please complete the following information):

  • OS: windows
  • Browser: chrome
  • Version: 4.45.0 same behavior in graph explorer

Additional context ClientRequestId: 8ca5f68d-1c1d-4b56-af7f-3791f4a24d30

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,823 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 41,286 Reputation points
    2024-03-01T07:02:02.68+00:00

    Hi @Tsai Yunda

    This is an expected error, filtering by body/content is not supported for the /events API. There is a similar question here.

    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.


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.