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.

Microsoft 365 and Office | Development | Other
Microsoft Security | Microsoft Graph
Microsoft 365 and Office | OneNote | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 1,690 Reputation points Microsoft External Staff
    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.


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.