Hi @Paul Smith
Make sure you are using Graph .NET SDK version 5.0 or above.
Also, your error is not necessarily a service exception, it could be specific instances of ODataError
exceptions thrown by the SDK that rely on metadata provided by the API to return valuable details, so try to catch the ODataError
exception.
try
{
result = await graphClient.Me.Todo.Lists["{list id}"].Tasks.GetAsync();
}
catch (ODataError odataError)
{
Console.WriteLine(odataError.Error.Code);
Console.WriteLine(odataError.Error.Message);
}
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.