Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getUserIdentityTokenAsync returning failed "An internal server error" #4416

Open
MrDaleQ opened this issue May 2, 2024 · 10 comments
Open

getUserIdentityTokenAsync returning failed "An internal server error" #4416

MrDaleQ opened this issue May 2, 2024 · 10 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback

Comments

@MrDaleQ
Copy link

MrDaleQ commented May 2, 2024

Provide required information needed to triage your issue

##Your Environment
Platform [PC desktop, Mac, iOS, Office on the web]: Affects Outlook Desktop (classic) and Office on Web.
Host [Excel, Word, PowerPoint, etc.]: Outlook
Office version number: 16.0.17531.20120
Operating System: Windows 10
Browser (if using Office on the web): Edge

Expected behavior

When calling getUserIdentityTokenAsync a token is returned by Exchange Online

Current behavior

When calling getUserIdentityTokenAsync instead of returning a token it is returning failed.

Steps to reproduce

Currently attempting to repro

image

Context

This error prevents the Identity token being passed to our add-in, which prevents authentication by the user. This prevents use of the addin.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label May 2, 2024
@exextoc exextoc added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels May 2, 2024
@exextoc exextoc self-assigned this May 2, 2024
@neprasad-microsoft
Copy link

Hi @MrDaleQ
Please help us with the following queries so that we can debug this -

  1. How many users are affected by this?
  2. Can you collect logs and send it to us - https://github.com/OfficeDev/office-js/wiki/Collecting-log-files-for-Outlook-Add%E2%80%90ins-issues
  3. Please share your code snippet where you are using this API.
  4. If possible,please share a test account with us.

You can share this data on a GitHub private repo.

@neprasad-microsoft neprasad-microsoft added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels May 2, 2024
@MrDaleQ
Copy link
Author

MrDaleQ commented May 2, 2024

Hi @neprasad-microsoft

Thanks for the feedback - can I ask if there is a reason why instructions for Classic Outlook are not listed on the page? We're aware we can generate them in a similar manner to this, but this may be useful for other customers.

We're seeing this affecting small numbers of customers currently, and some are reporting this as fixed. We have a support call with a customer of around 8000 users today that is still reporting the issue.

The code snippet used by our dev team is as follows - the function in question has been in use for some time.

return new Promise(function (resolve, reject) { Office.context.mailbox.getUserIdentityTokenAsync( function (asyncResult) { if (asyncResult.status === Office.AsyncResultStatus.Failed) { reject(asyncResult.error); } else { resolve(asyncResult.value); } }); });

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels May 2, 2024
@MrDaleQ
Copy link
Author

MrDaleQ commented May 2, 2024

Hi @neprasad-microsoft

I have added you to my private repo and uploaded the har logs from an affected customer, with a screenshot of the dev console.

https://github.com/MrDaleQ/MSShare/issues/4

@neprasad-microsoft
Copy link

Hi @MrDaleQ
Is it possible for you to share the exact code snippets with us, where you have added log statements? Or if possible, can you share your manifest so that we can debug what is happening exactly.

@MrDaleQ
Copy link
Author

MrDaleQ commented May 3, 2024

Hi @neprasad-microsoft

You can get the manifest from outlook.signature365.com/manifest.xml

@neprasad-microsoft
Copy link

Hi @MrDaleQ
The logs which you shared do not have the corresponding logs which we log for getUserIdentityToken. Could you collect the logs again and send it to us? Start from Outlook Web load to opening your add-in till the error comes up. Wait for a few mins before stopping the log collection after the error.
I debugged with your add-in but for me the getUserIdentitytoken call is successful but later, I get the same error " url https://id.signature365.com/connect/token returned a status of: 400". The reason was different because my tenant is not allowed to connect to your resource.

@DivyaPatidar DivyaPatidar added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels May 6, 2024
@MrDaleQ
Copy link
Author

MrDaleQ commented May 8, 2024

@neprasad-microsoft

I believe Kwame has now taken up this case - from speaking to our dev team, when this error occurs getUserIdentityToken does not make a HTTP request, thus no error is generated.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels May 8, 2024
@andrebel10
Copy link

Was this resolved?

@MrDaleQ
Copy link
Author

MrDaleQ commented May 10, 2024

@andrebel10 @neprasad-microsoft

This issue has not as yet been resolved from our customer feedback

@mmanjaree-msft
Copy link

@MrDaleQ Could you please share logs as mentioned by @neprasad-microsoft in comments above- The logs which you shared do not have the corresponding logs which we log for getUserIdentityToken. Could you collect the logs again and send it to us? Start from Outlook Web load to opening your add-in till the error comes up. Wait for a few mins before stopping the log collection after the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback
Projects
None yet
Development

No branches or pull requests

6 participants