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

Getting Internal Server Error on 'CreateAttachmentFromUri' api from Outlook web #4300

Open ashu66867 opened 6 months ago

ashu66867 commented 6 months ago

I am getting a 500 error for 'owa/service.svc?action=CreateAttachmentFromUri' api.

Your Environment

Expected behavior

Should not fail.

Current behavior

I get 500 internal server error.

Steps to reproduce

  1. Add 'DocuSign for Outlook' app to Outlook
  2. Login.
  3. Click on 'Sign' button and then 'Finish' button.
  4. Click on 'Send by Email' button.
  5. A new mail will be drafted but the attachment fails.

Context

This issue has impacted the functionality of our add-in.

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.

ashu66867 commented 6 months ago

@exextoc Any updates on this? Were you able to reproduce this issue?

akagarwa-msft commented 6 months ago

Thanks for reporting this issue regarding Attachments API. It has been put on our backlog. We unfortunately have no timelines to share at this point.

Internal tracking id: Office: 4447824

ashu66867 commented 5 months ago

@akagarwa-msft Any updates on this issue?

mythLabs commented 5 months ago

facing this issue. any update on this ?

znovo626 commented 4 months ago

@exextoc Still no timelines?

rbolisetty commented 4 months ago

I'm facing a similar issue too; any update on this?

pk-docu commented 4 months ago

We are facing similar issue in one of our core functionality. akagarwa-msft could you please help sharing the timelines/update?

ashu66867 commented 3 months ago

@exextoc @akagarwa-msft Additional info based on testing this feature in 3 platforms.

  1. Classic Outlook for Windows - PASS - console.log(Office.context.platform) = "PC"
  2. Outlook on web / browser - FAILURE - console.log(Office.context.platform) = "OfficeOnline"
  3. NEW Outlook on windows - FAILURE - console.log(Office.context.platform) = "OfficeOnline"

My understanding is that this is platform specific issue for "OfficeOnline" platform only.

ashu66867 commented 3 months ago

Our core functionality has been impacted due to this bug. Please fix it asap. @exextoc @akagarwa-msft

ashu66867 commented 3 months ago

@ElizabethSamuel-MSFT @sumurthy @AlexJerabek @Rick-Kirkham @zhenhuangMSFT Calling for help to fix this issue.

RaheelSatti commented 1 month ago

Is there any update on this issue it is pending since a long time? We are facing challenge, and it is affecting productivity of users. @ElizabethSamuel-MSFT @sumurthy @AlexJerabek @Rick-Kirkham @zhenhuangMSFT

rbolisetty commented 1 month ago

We're also blocked by this; our add-in's essential functionality is broken due to this error. @ElizabethSamuel-MSFT @sumurthy @AlexJerabek @Rick-Kirkham @zhenhuangMSFT

mrharindra commented 4 weeks ago

@ashu66867 @mythLabs @znovo626 @rbolisetty Use office.js from CDN -
https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js I tried with this, in my case file is attached successfully

Note: I have not tested this with Onprem-Exchange

mrharindra commented 3 weeks ago

@exextoc Below Office API is not working on Onprem Exchange 2019 (Exchange Server 2019 CU14 Release date Apr 2024) Office.context.mailbox.item.addFileAttachmentAsync(fileUrl, fileName, options, attachFileCallback);

Please provide us some workaround, our core functionality is breaking.

ashutosh-docusign commented 3 weeks ago

@mrharindra Have you tested on Outlook on web or Outlook on Mac ?

I am facing this issue only on above two platforms. File is attached successfully in Outlook app on Windows.

mrharindra commented 3 weeks ago

@ashu66867 @ashutosh-docusign I have tested on Outlook on the Web (https://outlook.office.com) using https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js and it is working fine.

In latest Office JS, Office.context.mailbox.item.addFileAttachmentAsync( ... ) API, getting file from UI only, then converting to base64 and then uploading base64 data using latest API (Office.context.mailbox.item.addFileAttachmentFromBase64Async ) that is available in Outllok API version 1.8. Older office JS was sending file URI to exchange server then exchange server was calling that file URI.

ashutosh-docusign commented 3 weeks ago

Thanks @mrharindra ! My attachment is failing in this step Office.context.mailbox.item.displayReplyAllForm( ... ) API. I updated to Outlook API version 1.8 as well. But it is failing. Can you test if displayReplyAllForm api is working as expected?