Search code examples
azureapisharepointmicrosoft-graph-apimicrosoft-graph-files

General Exception Microsoft Graph API OfficeConversion_ConverterInternal


I've been calling this endpoint for the last month or so by converting my word document into a pdf and its been working fine:

https://graph.microsoft.com/v1.0/drives/{drive_id}/root/children('example.docx')/content?format=pdf

I tried this today and it seem that i don't get the pdf as a response but rather:

{
    "error": {
        "code": "generalException",
        "message": "Error from Office Service. Url=https://wordcs.officeapps.live.com/document/export/pdf HttpCode=NotFound cert=subject:;thumbprint: ResponseHeaders=Connection: close\r\nDate: Wed, 27 Jan 2021 14:14:23 GMT\r\nServer: Microsoft-IIS/10.0\r\nX-Powered-By: ASP.NET\r\n",
        "innererror": {
            "code": "OfficeConversion_ConverterInternal"
        }
    }
}

I followed these docs from Microsoft but with no help :/

https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http

When i don't use the format parameter to fetch the pdf conversion i can successfully get a response (200) from the original file atleast:

https://graph.microsoft.com/v1.0/drives/{drive_id}/root/children('example.docx')/content

Have the Microsoft Graph API been updated recently?

Also i do have all Azure access and all of that since this has been working fine for the past month so I'm almost certain the API has changed or perhaps my domain got blocked or something...


Solution

  • please check now. The issue has been resolved.