OneDrive Error Codes

Fix OneDrive REST API Upload Session Service Unavailable Errors

Khadija KhanKhadija Khan Nov 22, 2026 868 views

Question details

The user needs to resolve a service unavailable error when uploading through a OneDrive REST API upload session.

Fix OneDrive REST API Upload Session Service Unavailable Errors
Product
Microsoft OneDrive REST API
Device & OS
not provided
Scenario
An application uses an upload session to upload a file to OneDrive.
Observed behavior
Small-file uploads work, but uploads through the session URL return a service unavailable message even after several hours.
Before you start

Capture the HTTP status, response headers, error body, and time of a failed request. Identify whether the failure occurs when creating the session or when sending a chunk to its upload URL.

Solution 1Recommended

Check OneDrive service health and the upload session request

Use this approach to rule out a service incident, an expired session, or an incorrectly formed chunk request.

1
Check service health

For a work or school account, ask an administrator to check Health > Service health in the Microsoft 365 admin center for OneDrive incidents. For a personal account, check the OneDrive help center for service information.

2
Create a fresh session

Send an authenticated POST request to the appropriate createUploadSession endpoint and check the returned uploadUrl and expirationDateTime. If the session has expired, create a new one rather than reusing its URL.

3
Inspect the chunk request

Send each file chunk with PUT to the exact uploadUrl returned by the session. Do not add the authorization header to the upload URL request. Set Content-Length to the chunk size and Content-Range to the byte range and total file size.

4
Check chunk sizing and retries

Upload chunks sequentially, with each request smaller than 60 MiB; nonfinal chunk sizes must be multiples of 320 KiB. For a 503 response, honor any Retry-After header or retry with exponential backoff.

Check OneDrive service health and the upload session request
Protect the upload URL: The upload URL is preauthenticated. Treat it as sensitive and do not publish it or access tokens in logs or support forums.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Office format compatibility make it easy to move existing files into your workflow. It does not fix the OneDrive API upload session error.

Open and edit common Microsoft Office formats, including DOCX, XLSX, and PPTX.Work with documents that you can upload to cloud storage using a supported workflow.Use a familiar interface for documents, spreadsheets, and presentations.Get a free, lightweight Office alternative.
microsoft office alternative - wps office

Frequently Asked Questions

Does a successful small-file upload mean upload sessions should work?

Not necessarily. A direct small-file upload and an upload session use different requests. Check the createUploadSession response and the subsequent PUT requests to the returned upload URL separately.

Should I send my access token to the upload URL?

Use an access token for the createUploadSession request, but omit the authorization header when sending PUT requests to the preauthenticated uploadUrl returned by the session.

What should I do if the upload session expires?

Check expirationDateTime in the session response. If the session has expired, send a new createUploadSession request and use its returned upload URL.

How should I retry a 503 response?

Check the response for a Retry-After header and wait for the indicated interval. If it is absent, retry with exponential backoff. If failures continue, collect request IDs and contact support.