在MSTeams Desktop Client中使用SPFx WebPart加载SP页面时,AadHttpClient失败 [英] AadHttpClient fails when loading SP page with SPFx webpart in MSTeams Desktop Client

查看:122
本文介绍了在MSTeams Desktop Client中使用SPFx WebPart加载SP页面时,AadHttpClient失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MS Teams中添加了个人标签,该标签引用了 SharePoint页面,并使用AadHttpClient在其上包含了 SPFx Webpart .

在MS Teams Web客户端中,页面按预期加载,并且AadHttpClient调用正常工作.

但是,在 MS Teams桌面客户端(在Windows中)中,AadHttpClient不起作用.

在Fiddler中,我可以看到以下情况(仅在dekstop客户端上):

  • 已呼叫/sites/MyDevSite/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource='9bebc8ed-8a93-4efc-84a3-ae979d301124'&clientId='add82f27-80e9-45e3-9cf5-345e72d24ff7'

  • 该呼叫返回带有消息的HTTP 500:

{"odata.error":{"code":-1,System.AggregateException","message":{"lang":"en-US","value":发生一个或多个错误. }}}

我不知道该怎么做才能解决此问题,因此任何帮助将不胜感激.

解决方案

Microsoft已修复了此问题.

I added a Personal Tab in MS Teams which references a SharePoint Page with on it an SPFx webpart using AadHttpClient.

In the MS Teams Web Client the page loads as expected, and the AadHttpClient calls work.

However, in the MS Teams Desktop Client (on windows) the AadHttpClient does not work.

Looking in Fiddler, I can see the following happening (only on the dekstop client):

  • A call is made to /sites/MyDevSite/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource='9bebc8ed-8a93-4efc-84a3-ae979d301124'&clientId='add82f27-80e9-45e3-9cf5-345e72d24ff7'

  • The call returns an HTTP 500 with message:

{"odata.error":{"code":"-1, System.AggregateException","message":{"lang":"en-US","value":"One or more errors occurred."}}}

I have no idea what I would have to do to fix this, so any help would be greatly appreciated.

解决方案

Fix has been issued by Microsoft.

这篇关于在MSTeams Desktop Client中使用SPFx WebPart加载SP页面时,AadHttpClient失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆