MS Graph : Error on get list Message

Bruno Lachot 6 Reputation points
2021-02-15T15:24:57.913+00:00
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,041 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruno Lachot 6 Reputation points
    2021-02-17T19:37:14.53+00:00

    Hello,

    Here are the requested ids
    https://graph.microsoft.com/v1.0/me/messages?%24filter=createdDateTime%20ge%202021-01-25T12%3A00%3A33Z%20and%20createdDateTime%20lt%202021-01-26T00%3A00%3A33Z%20and%20isDraft%20eq%20false
    request-id: 3cdaf791-28d4-4c8c-b25a-181daa553950
    client-request-id: 3cdaf791-28d4-4c8c-b25a-181daa553950

    https://graph.microsoft.com/v1.0/me/messages?$filter=createdDateTime+ge+2021-01-25T12:00:33Z+and+createdDateTime+lt+2021-01-26T00:00:33Z+and+isDraft+eq+false&$top=1&$skip=7&$select=createdDateTime
    request-id: 0b1f7649-a9e6-4522-bf98-4cbb135233c3
    client-request-id: 0b1f7649-a9e6-4522-bf98-4cbb135233c3

    I think it's a timeout or something like that.
    By adding the top and skip parameters, it seems that the query is full executed and only the requested results are returned.
    By decreasing the range we have a response, for eXample :
    https://graph.microsoft.com/v1.0/me/messages?$filter=createdDateTime+ge+2021-01-25T12:30:33Z+and+createdDateTime+lt+2021-01-25T13:00:33Z+and+isDraft+eq+false&

    Regards


  2. Bruno Lachot 6 Reputation points
    2021-02-18T14:07:25.84+00:00

    Hello,

    There are no errors message.
    The first request return a response with code 200 but it is truncated.
    The second return a code 503 without message

    You can find details in attached file. I cannot join the truncated json response because it's prohibited.
    69569-200-truncated-body.png69570-200-truncated-header.png69612-503-body.png69613-503-header.png

    About pagination, it is already used because the api makes a top 10 by default.
    By adding a &$top=5 in the query, the behavior remains the same.

    https://learn.microsoft.com/fr-fr/graph/api/user-list-messages?view=graph-rest-1.0&tabs=http
    The default page size is 10 messages.

    Regards.

    0 comments No comments

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.