Consistent 504 Gateway Timeout Error When Fetching OneNote Page via Graph API

RakeshKumar-4431 256 Reputation points
2023-08-16T05:26:31.3133333+00:00

We are currently leveraging the Graph API to retrieve a OneNote page within a group notebook. However, one of our customers frequently encounters a 504 gateway timeout error when attempting to load the page using this endpoint.

Endpoint: GET https://graph.microsoft.com/v1.0/groups/{group-id}/onenote/pages/{page-id}

Error Received:

504 Gateway Timeout - {
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "date": "2023-08-15T06:05:13",
      "request-id": "e89a5741-5e3d-44e7-9893-16ab99720299",
      "client-request-id": "b39b1e1f-4130-424e-9741-696341b74239"
    }
  }
}

Some additional context:

  • The notebook in question contains only a few pages.
  • The customer can successfully navigate to the OneNote page via the OneNote UI.
  • The 504 error is consistent and occurs frequently.

Given that the customer can access the page through the OneNote UI without any issues, we're puzzled as to why the Graph API call consistently results in a 504 error.

For reference, we're following the API documentation available here.

Could you provide insights into the potential reasons for this behavior and any possible solutions?

Thank you for your assistance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,662 questions
OneNote Management
OneNote Management
OneNote: A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.Management: The act or process of organizing, handling, directing or controlling something.
179 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ab-8756 805 Reputation points
    2023-08-16T19:39:07.7866667+00:00

    Hello RakeshKumar-4431,
    Thank you for reaching out to this Q&A Forum.

    Given your mention that the Notebook consists of only a few pages, the presence of larger data doesn't seem to be the underlying cause here.
    To find out the root cause, a thorough investigation utilizing HAR logs is necessary, I strongly advise you to open a support ticket for this issue.

    Hope that helps.
    Thanks


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.