Unable to download OneNote file using Microsoft Graph API

Edwin Fajar 146 Reputation points


I'm trying to download OneNote (.one) file inside the OneDrive using MS Graph API but always get 503 Service Unavailable Error.
I have tried 2 ways of downloading it.

First, using the URL available through the @microsoft.graph.downloadUrl property on the DriveItem.

GET /users/{userId}/drive/items/{item-id}

Then, I tried to download the content using this endpoint

GET /users/{userId}/drive/items/{item-id}/content

But the result is the same. It returns 503 Service Unavailable Error.
Here is the result if when download it from the browser using URL from @microsoft.graph.downloadUrl


Any idea what is the cause?

The file size is around 2.5 GB. Is the big OneNote size make it failed to download?


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,114 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Udit Berlia 1 Reputation point

    I also have same issues. I can't download my one note file when its size has more than 2 GB. The error is exactly the same.
    Can someone give the response to this as well?

    0 comments No comments