调用getUserIdentityTokenAsync()返回空令牌

编程入门 行业动态 更新时间:2024-10-09 12:35:48
本文介绍了调用getUserIdentityTokenAsync()返回空令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们在生产环境中有一个外接程序,对于某些用户,对getUserIdentityTokenAsync()的调用失败,并返回null令牌.

We have an add-in in production where, for certain users, the call to getUserIdentityTokenAsync() fails and returns a null token.

响应为

"Status" = "failed", "Error" = {message: "An internal error has occurred", name: "Internal Error"}

有人知道什么会导致这种类型的故障吗?某些用户总是会收到错误,而我们从未在本地或开发过程中见过该错误.

Would anyone know what could cause this type of failure? Certain users always get the error, and we have never seen the error locally or during development.

这似乎仅适用于桌面Outlook用户.通过浏览器使用加载项时,我们看不到用户有任何错误.

It seems to happen only for desktop Outlook users. We have not seen any errors for users when using the add-in via the browser.

推荐答案

我正在根据Outlook加载项团队在评论中的答复来更新答案.

I am updating the answer based on a response from the Outlook Add-ins Team in the comments.

在MSI版本中:针对Exchange 2013的16.0.4540.1000至16.0.4585.1000,GetUserIdentityToken不起作用.在之前的MSI版本,16.0.4540.1000/15.0.4931.1000和16.0.7813.1000之前的C2R版本中-调用GetUserIdentityTokenAsync和MakeEwsRequestAsync会导致失败

In MSI versions: 16.0.4540.1000 to 16.0.4585.1000 against Exchange 2013, GetUserIdentityToken did not work. In MSI versions before, 16.0.4540.1000 / 15.0.4931.1000 and C2R versions before 16.0.7813.1000 - calling GetUserIdentityTokenAsync along with MakeEwsRequestAsync would cause a failure

就我而言,大多数遇到问题的用户都在上面发布了客户端版本号.升级他们的Outlook版本可以解决此问题.

In my case, most of the users experiencing the problems had the client version numbers posted above. Upgrading their outlook version solved the issue.

更多推荐

调用getUserIdentityTokenAsync()返回空令牌

本文发布于:2023-11-26 21:34:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635277.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:令牌   getUserIdentityTokenAsync

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!