An API that connects multiple Microsoft services, enabling data access and automation across platforms
i am trying to create a task List using Graph API
Isha Keshri
0
Reputation points
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
TodoTaskList todoTaskList = new TodoTaskList();
todoTaskList.displayName = "Travel items";
graphClient.me().todo().lists().buildRequest()
.post(todoTaskList));
I have the following code given in their documentation but i am getting error
Error as follow:-
May 10, 2023 4:23:56 PM com.microsoft.graph.logger.DefaultLogger logError
SEVERE: CoreHttpProvider[sendRequestInternal] - 408Graph service exception
May 10, 2023 4:23:56 PM com.microsoft.graph.logger.DefaultLogger logError
SEVERE: Throwable detail: com.microsoft.graph.http.GraphServiceException: Error code: UnknownError
Error message:
POST https://graph.microsoft.com/v1.0/me/todo/lists
SdkVersion : graph-java/v5.42.0
SdkVersion : graph-java/v5.42.0
[...]
401 : Unauthorized
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Graph
Sign in to answer