question

IuliiaTUSHKOVA-5789 avatar image
0 Votes"
IuliiaTUSHKOVA-5789 asked

Addin Word office online: getFileAsync not working in prod environment

Hello,

I develop a Word add-in displaying the content of .docx files and saving it with user’s modifications.

For getting the file content I use the following approch : https://docs.microsoft.com/fr-fr/javascript/api/office/office.document?view=common-js-preview#office-office-document-getfileasync-member(1)

After the application is deployed to the Apache 2.4 server, I have an issue with the Office.context.document.getFileAsync() function (just Office Online).

The execution of getFileAsync() encounters a problem and never calls the callback. Using the debugger, I get the following error:



DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL

Fichier : WordEditorDC.worker.js



Here’s the message from Network :



Office Online services aren't available right now

We're working to restore all services as soon as possible. Please check back soon. If the error persists please contact Microsoft Support for assistance along with the Url you were trying to access

Error Code for Support

Ref A: 7416B85B6C5745AA867577C1F0689A36 Ref B: LON21EDGE2412 Ref C: 2022-05-20T12:58:39Z



The issue doesn’t occur on the desktop application and it’s ok during local developpement (Server Node 16.13.1).

Could you help me ?

Thanks !

office-addins-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers