Microsoft ToDo Graph API is sending broken JSON

205 views Asked by At

I'm getting the response with invalid JSON (brackets aren't closed) when trying to get the MS ToDo task for the user. Also, API sends HTTP status 200 with that response.

Request/response examples: https://graph.microsoft.com/v1.0/me/todo/lists/:listID/tasks/:taskID

{
    "title": "DELETED",
    "createdDateTime": "2020-06-17T18:33:44.3228459Z",
    "lastModifiedDateTime": "2020-11-27T11:36:55.8037415Z",
    "id": "DELETED",
    "linkedResources": [
        {
            "error": {
                "code": "InternalServerError",
                "message": "Invalid object within the collection response from workload for navigation property linkedResources with declaring type microsoft.graph.todoTask. Expected a JObject, but got Jtoken type - Null",
                "innerError": {
                    "date": "2021-05-14T03:13:36",
                    "request-id": "5b9445b0-7405-436a-8179-cac92a8af087",
                    "client-request-id": "5b9445b0-7405-436a-8179-cac92a8af087"
                }
            }
        }

How can I resolve this issue?

0

There are 0 answers