Fetching OneNote Page Content Returns 500 Error via Microsoft Graph API

Shradha Pokhriyal 5 Reputation points
2024-03-14T08:27:37.6133333+00:00

We are currently experiencing issues with the Microsoft Graph API when attempting to retrieve the content of OneNote pages. Despite numerous attempts, this API consistently returns a 500 Internal Server Error for specific calls.

Here are the details of the request and response:

Endpoint: GET https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{page-id}/content

Response:

statusCode: 500,
{
    "error": {
        "code": "19999",
        "message": "Ein Fehler ist aufgetreten, und die API kann zum Zeitpunkt der Anforderung keine weiteren Informationen mehr mitteilen.",
        "innerError": {
            "date": "2024-03-11T05:56:57",
            "request-id": "4edffaaa-766f-48b2-b5d2-173df8a222c7",
            "client-request-id": "ce5e20b5-a1fb-4956-be2f-61b79361341c"
        }
    }
}

the error message translates to "An error has occurred and the API is no longer able to communicate further information at the time of the request."
This recurring error is impacting our operations and hindering our ability to serve our customers effectively.

Please let us know if any additional information is needed from our side.

Thank you for your cooperation and support.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,380 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.
3,709 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,886 Reputation points Microsoft Vendor
    2024-05-24T18:58:34.49+00:00

    Hello @Shradha Pokhriyal,

    Thank you for reaching Microsoft.

    The error code "19999" for OneNote represents - The request failed because an undetermined error occur, also, the 500 error is a server-side error. This could be due to various factors, including internal server errors, an incorrect API request format, or problems with the requested resources. If the error occurs occasionally and the request is successful upon retry, it might indicate a temporary server issue or a transient network problem.

    There is no universal solution to this error, if your request format and access token are correct, then checking your server and retrying would be the first thing you should do.

    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