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
682 stars 95 forks source link

Office.context.mailbox.item?.body.getAsync fails frequently in Outlook for Mac #3306

Closed abdumanas-plutoflume closed 1 year ago

abdumanas-plutoflume commented 1 year ago

Provide required information needed to triage your issue

In Outlook for Mac, the Office.js API to retrieve email body, both as text and html, fails frequently. The error code and message extracted from the error are below:

errorCode: 5001, 
errorMessage: An internal error has occurred., 
errorName: Internal Error, 

Your Environment

Expected behavior

The Office.js API should be reliable in all platforms.

Current behavior

The Office.js API to retrieve email body is unreliable in Outlook for Mac.

Steps to reproduce

  1. Create an onSend event handler which invokes Office.context.mailbox.item?.body.getAsync
  2. Run it in an Outlook for Mac version specified above.

Context

The frequent failure of the API has caused our add-in to fail multiple times.

Useful logs

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

eugene-plutoflume commented 1 year ago

A similar issue has been fixed last year. I guess you still get the same issue, see https://github.com/OfficeDev/office-js/issues/2386

exextoc commented 1 year ago

Hey @abdumanas-plutoflume

We are not able to reproduce the issue. Can you please help us with a sample add-in where the issue is reproducible?

ghost commented 1 year ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

ghost commented 1 year ago

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.