OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
688 stars 94 forks source link

PowerPoint.createPresentation does not work anymore in PowerPoint Online #2254

Closed FranCerrada closed 2 years ago

FranCerrada commented 3 years ago

In PowerPoint Online when trying to create a presentation using powerpoint web api the presentation is not created and we get the following error:

powerpoint-web-16.00.js:26 Uncaught (in promise) RichApi.Error: An internal error has occurred.
    at new n (powerpoint-web-16.00.js:26)
    at o (powerpoint-web-16.00.js:26)
    at Object.OSF.DDA.issueAsyncResult (powerpoint-web-16.00.js:26)
    at Object.onComplete (powerpoint-web-16.00.js:26)
    at Object.callback (powerpoint-web-16.00.js:26)
    at v (powerpoint-web-16.00.js:26)

This was working yesterday and nothing has change in our side. We are using the beta channel, but also tried using the release channel and the issue is still reproducible. If it helps, I can say that this dialog is not showing anymore image

Your Environment

Expected behavior

Presentation will be created in new tab of the Browser

Current behavior

It throws the above error and the presentation is not created

Steps to reproduce

  1. Open an add-in that can create a presentation in PowerPoint Online
  2. Invoke PowerPoint.createPresentation(base64file) passing the url to the presentation you want to create in base64.

Context

The creation of the presentation happens from an Dialog loading an iframe.

Useful logs

powerpoint-web-16.00.js:26 Uncaught (in promise) RichApi.Error: An internal error has occurred.
    at new n (powerpoint-web-16.00.js:26)
    at o (powerpoint-web-16.00.js:26)
    at Object.OSF.DDA.issueAsyncResult (powerpoint-web-16.00.js:26)
    at Object.onComplete (powerpoint-web-16.00.js:26)
    at Object.callback (powerpoint-web-16.00.js:26)
    at v (powerpoint-web-16.00.js:26)
alison-mk commented 3 years ago

Hi @FranCerrada, thank you for submitting this issue! We've assigned it to @lliu113 and @ononder, who will be able to provide you with more information or help resolve the issue.

Cheers, Alison

ononder commented 2 years ago

We have identified the issue that is causing this and currently waiting for the fix to be deployed. Thanks for your feedback.

FranCerrada commented 2 years ago

Thanks!

ononder commented 2 years ago

The issue should be fixed now, let us know if you have any follow up questions regarding this. Thanks for your feedback.

FranCerrada commented 2 years ago

I can confirm is working again. Thank you!