Microsoft Graph file convert service is unavailable with 503 Service Unavailable

Abdulkareem Nalband 71 Reputation points
2022-02-28T14:24:47.737+00:00

We use Microsoft Graph File convert API to convert word(.docx) files to pdf

And convert API is failing with 503 Service Unavailable

our request details are as below

GET https://graph.microsoft.com/v1.0/drives/b!0dm-NWIVrUuB0R8YMNzPiMaYSpk38jNLnEVvRXPI9vn9u-elusw4SrWaCh8v8WjA/items/01RL4HXQGQYI3BD2AZDRGZXNENMYIGDCD3/content?format=pdf

And it gives following URL in location header (stripped of auth token)

https://northeurope1-mediap.svc.ms/transform/pdf?provider=spo&inputFormat=docx&cs=MTA2NGY3ZTQtYTllMi00NjdkLThkNDItZjQ1Y2M1OWYxNDVkfFNQTw&correlationId=bbbcbc79-430d-4a78-ac23-2b165291f4b9&docid=https%3A%2F%2Ffigg.sharepoint.com%2F_api%2Fv2.0%2Fdrives%2Fb%210dm-NWIVrUuB0R8YMNzPiMaYSpk38jNLnEVvRXPI9vn9u-elusw4SrWaCh8v8WjA%2Fitems%2F01RL4HXQGQYI3BD2AZDRGZXNENMYIGDCD3%3Fversion%3DPublished

calling GET call on above returns following content

HTTP/2 503 Service Unavailable     
cache-control: no-store  
content-length: 981  
content-type: text/html  
x-azure-externalerror: 0x80072ee2,OriginTimeout  
x-msedge-ref: Ref A: AFBAFAB7E0A44A38805105C26631A4C3 Ref B: BOM01EDGE1618 Ref C: 2022-02-28T13:56:06Z  
date: Mon, 28 Feb 2022 13:58:06 GMT  
X-Firefox-Spdy: h2  
  

Our services aren't available right now

We're working to restore all services as soon as possible. Please check back soon.
Ref A: AFBAFAB7E0A44A38805105C26631A4C3 Ref B: BOM01EDGE1618 Ref C: 2022-02-28T13:56:06Z

Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Sheena-MSFT 1,736 Reputation points
    2022-02-28T18:32:10.11+00:00

    Hi @Abdulkareem Nalband ,

    Generally 503 service unavailable error may come when the service is temporarily unavailable for maintenance or is overloaded.

    You may repeat the request after a delay, the length of which may be specified in a Retry-After header.

    OR You can retry the requests or increasing the timeout(if you are using any custom application increase the timeout for at least 2 min).

    errors

    Sometimes it can happen with throttling. You should employ a back-off strategy similar to 429. Additionally, you should always make new retry requests over a new HTTP connection.

    best-practices-concept

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

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.