有关 ms.vss-web.platform 权限的控制台错误

console error regarding permissions for ms.vss-web.platform

我正在开发 Azure DevOps 扩展,但我一直在控制台中看到以下错误。我很困惑,因为扩展本身在访问我需要的所有 API 端点时没有问题,而且程序中的其他任何地方都没有出现错误。坦率地说,我什至不确定我拥有的哪个 azure devops npm 依赖项是问题所在。我认为它在 sdk 的内部授权中。

ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1 No permissions found for security namespace '2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87' and token 'repoV2/f2613275-db5d-4cbb-95c8-00ba53f76641/cd200cef-44c7-4839-8f93-57c6a0979eaa/'. Ensure that the effective permissions are included in shared data.
handleMissingState @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-code-web.repos-common.es6.IVnGfEDL4locZJoF.min.js:1
o @ ms.vss-code-web.repo-dropdown.es6.YGhYtNfEnTm__X8z4.min.js:1
wt @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Yn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
$n @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
lr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Xn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
hr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
yr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
wr.render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
pr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
xr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
renderPage @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
notify @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
set value @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1 No permissions found for security namespace '2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87' and token 'repoV2/f2613275-db5d-4cbb-95c8-00ba53f76641/cd200cef-44c7-4839-8f93-57c6a0979eaa/'. Ensure that the effective permissions are included in shared data.
handleMissingState @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-code-web.repos-common.es6.IVnGfEDL4locZJoF.min.js:1
o @ ms.vss-code-web.repo-dropdown.es6.YGhYtNfEnTm__X8z4.min.js:1
wt @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Yn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
$n @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
lr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Xn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
hr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
yr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
wr.render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
pr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
xr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
renderPage @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
notify @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
set value @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1 No permissions found for security namespace '2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87' and token 'repoV2/f2613275-db5d-4cbb-95c8-00ba53f76641/cd200cef-44c7-4839-8f93-57c6a0979eaa/'. Ensure that the effective permissions are included in shared data.
handleMissingState @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-code-web.repos-common.es6.IVnGfEDL4locZJoF.min.js:1
o @ ms.vss-code-web.repo-dropdown.es6.YGhYtNfEnTm__X8z4.min.js:1
wt @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Yn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
$n @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
lr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Xn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
hr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
yr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
wr.render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
pr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
xr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
renderPage @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
notify @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
set value @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1 No permissions found for security namespace '2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87' and token 'repoV2/f2613275-db5d-4cbb-95c8-00ba53f76641/cd200cef-44c7-4839-8f93-57c6a0979eaa/'. Ensure that the effective permissions are included in shared data.
handleMissingState @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
hasPermission @ ms.vss-code-web.repos-common.es6.IVnGfEDL4locZJoF.min.js:1
o @ ms.vss-code-web.repo-dropdown.es6.YGhYtNfEnTm__X8z4.min.js:1
wt @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Yn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
$n @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
sr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
lr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
rr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
Xn @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
hr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
yr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
wr.render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
pr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
xr @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
render @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
renderPage @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1
notify @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
set value @ ms.vss-web.core-content.es6.h5KNnhyJXjqXbn7t.min.js:1
(anonymous) @ ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1

我在按照 Microsoft 站点的教程创建测试 Web 扩展时遇到了类似的错误。调查后我发现安全命名空间是 Git 存储库,查看 here 了解更多信息。

而且我发现只有当我的扩展目标目标为 Azure 存储库时,如下所示。该错误将显示在我的控制台中。

但是我的分机没有受到影响并且仍在运行。您可以尝试发布您的扩展并试一试。 “

targets": [
        "ms.vss-code-web.code-hub-group"
      ],

我确认权限已全部设置且正确无误。 我报告了一个问题 here。你可以去投票并跟踪它。