Is anyone at MS aware of the 504 timeouts from the OneNote Graph API endpoints?

PSandor 0 Reputation points
2024-11-13T17:40:58.7166667+00:00

Every time I call https://graph.microsoft.com/v1.0/me/onenote/sections/{section_id}/pages for a specific notebook section, I receive a 504 Unkown Error.I've noticed several similar posts about this issue. Is anyone at Microsoft addressing this?

I'm on a Family subscription, so I can’t open an Azure support ticket, and the Office support team wasn't able to help. It’s disappointing that we can’t report these types of problems to Microsoft without paying for support.

Error: 504
{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "date": "2024-11-13T17:00:59",
      "request-id": "e682aff7-c745-4368-91cd-2fd586df995f",
      "client-request-id": "e682aff7-c745-4368-91cd-2fd586df995f"
    }
  }
}

The section I’m querying has around 25 pages, while the call works fine for another section in the same notebook with only 3 pages.

OneNote
OneNote
A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
219 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,658 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,103 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 80 Reputation points Microsoft Vendor
    2024-12-26T06:35:29.3033333+00:00

    Hi PSandor,

    Thank you for contacting Microsoft!

    As mentioned in the above call https://graph.microsoft.com/v1.0/me/onenote/sections/{section_id}/pages for a specific notebook section, the 504 is often a gateway timeout error. Can you try using $top query parameter to paginate the results which can help reduce the amount of data being returned and avoid timeouts. Also try implementing retry logic in your application to handle transient errors gracefully. This can help manage temporary issues that might be causing 504 errors.

    As you are on a family subscription, consider providing feedback through Microsoft Graph API feedback forum. Even without a support ticket, your input can help Microsoft address these issues.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    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.