Long Response Time on Listing Todo-Tasks

Severin Pr 0 Reputation points
2024-04-17T11:19:15.69+00:00

I am using the microsoft graph sdk for java (v5.48.0) for quite a time now for loading/creating/updating Events and Todo-Tasks with application permissions and the OAuth 2.0 Client Credential flow. This did work out very well and I did not have any problems.

However, now I wanted to use to a higher version of the microsoft graph sdk (v6.5.1). Here I do not have any problems for loading events with:

graphClient.users().byUserId(userId).calendar().calendarView().get(...);

The above request lasts a few seconds (when loading the events of the next 7 days).

But when I try to list the todo-tasks for a user with:

graphClient.users().byUserId(userId).todo().lists().byTodoTaskListId("{todoTaskList-id}").tasks().get();

the requests lasts for more than 20 minutes and does not throw any Exception. When I reduce the requested items with the top parameter to top=10 the request still lasts more than 1 minute.

When I try a request with the older version of the graph sdk for java (v5.48.0) an "equal" request, for loading all todo-tasks of a user, only lasts for about 5 seconds.

Now the question would be if there are there any known or unkown issuses with the graph sdk for java (v6.5.1), used with application permissions, so that this requests last so long, or does anybody know what the problem could be?

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