即使驱动器存在,也无法检索用户的 mysite URL [英] Getting Unable to retrieve user's mysite URL even if the drive exists

查看:63
本文介绍了即使驱动器存在,也无法检索用户的 mysite URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 PHP 库查询给定驱动器的图形时,我收到 400 Unable to retrieve user's mysite URL429 Too many requests.例如,当我使用 PHP 库调用 https://graph.microsoft.com/v1.0/users/b0633c25-2655-4dfe-a2b2-078e4310deba/drive 时,它给出了这个奇怪的结果.当我在 Graph Explorer 中查询相同的 url 时.它就像一个魅力.

When querying the Graph with the PHP library for a given drive I receive 400 Unable to retrieve user's mysite URL or 429 Too many requests. When I call for example https://graph.microsoft.com/v1.0/users/b0633c25-2655-4dfe-a2b2-078e4310deba/drive with the PHP library it gives this weird result. When I query the same url in the Graph Explorer. It works like a charm.

我已按照文档中的说明设置了权限,并且 E3 开发人员订阅仍然有效.

I've set up the permissions as described in the docs and have the E3 Developers subscription that is still valid.

我错过了什么?

推荐答案

当前的错误似乎是用户没有创建 ODFB(OneDrive For Business) 站点,您可以检查用户是否创建了 OneDrive 站点(OneDrive 站点将在用户第一次使用它时创建).

The current error seems like user does not have ODFB(OneDrive For Business) site created, you can check if the user have create OneDrive site(the OneDrive site will be created while the user first time to use it).

要暂时调试该问题,请尝试使用 Graph Explorer https://developer.microsoft.com/en-us/graph/graph-explorer# 并使用您的用户帐户登录.如果您可以访问/me,则尝试访问/me/drive/root,如果存在,您将获得有关当前用户的 ODFB Doc Lib 的详细信息.我们可以通过以下链接获取登录用户的结果

To debug that issue for now, try to use Graph Explorer https://developer.microsoft.com/en-us/graph/graph-explorer# and login with your user account. If you can access /me then try accessing /me/drive/root and you will get details about ODFB Doc Lib for current user if it exist. we can get results with the following link for login-in user

https://graph.microsoft.com/v1.0/me/drive/root/children

给你参考:https://github.com/microsoftgraph/microsoft-graph-docs/issues/1354

这篇关于即使驱动器存在,也无法检索用户的 mysite URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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