Unable to download OneNote file using Microsoft Graph API

Edwin Fajar 146 Reputation points
2021-03-18T03:13:25.647+00:00

Hi,

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}
driveitem-get

Then, I tried to download the content using this endpoint

GET /users/{userId}/drive/items/{item-id}/content
driveitem-get-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

78920-onenote.png

Any idea what is the cause?

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

Thanks

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

1 answer

Sort by: Most helpful
  1. Udit Berlia 1 Reputation point
    2021-05-24T00:56:27.297+00:00

    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