尝试获取文件夹的子代时出现MS Graph API未知错误 [英] MS Graph API Unknown Error when trying to get folder's children

查看:71
本文介绍了尝试获取文件夹的子代时出现MS Graph API未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试使用Microsoft Graph API相对路径访问我的SharePoint网站的驱动器中的特定文件夹时,出现未知错误.这个完全相同的请求在一周前就可以正常工作,但在本周再次使用时停止了工作.

When trying to access a specific folder in my sharepoint site's drive using the Microsoft Graph API relative pathing I get an unknown error. This exact same request worked fine just over a week ago but stopped working this week when using it again.

测试结果是我网站驱动器上的一个文件夹.根据 OneDrive开发文档,这就是请求的方式外观:/drive/root:/path/to/folder:/children

Test Results is a folder on my site's drive. According to OneDrive dev docs this is how the request should look: /drive/root:/path/to/folder:/children

实际请求(已删除站点ID):

Actual Request (site-id removed):

https://graph.microsoft.com/v1.0/sites/<site-id>/drive/root:/Test%20Results:/children

预期结果:测试结果"文件夹中所有文件夹/项目的列表

Expected Result: a list of all folders/items within the 'Test Results' folder

实际结果:

{
    "error": {
        "code": "-1, Microsoft.SharePoint.Client.UnknownError",
        "message": "Unknown Error",
        "innerError": {
            "request-id": "79b530f9-1bb9-455d-84e0-b3144fbf9c1c",
            "date": "2017-11-06T18:58:11"
        }
    }
}

最初使用beta而不是v1.0,但是似乎共享点和驱动器调用不再是beta(使用beta代替v1.0也可以获得相同的结果).

This originally used beta instead of v1.0 but it seems that the sharepoint and drive calls are no longer beta (also get the same results using beta in place of v1.0).

我已经尝试对以前的工作请求进行了几种不同的更改,但始终收到未知错误.因为不再使用beta,我是否在这里错过了一些东西?或者这是Microsoft的bug?任何帮助,我们将不胜感激.

I've tried several different changes to my previously working request, but keep getting the unknown error. Am I missing something here since it's no longer using beta - or is this a bug on the Microsoft side? Any help is greatly appreciated.

推荐答案

根据

According to this post, the issue was on the MS side. They reverted and the issue is now resolved for me.

这篇关于尝试获取文件夹的子代时出现MS Graph API未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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