Microsoft Graph API for SharePoint in Python: Microsoft.SharePoint.Client.UnknownError [closed]

拈花ヽ惹草 提交于 2019-12-30 07:27:51

问题


We are sending out the following query:

{u'parentReference': {u'path': u'/drive/root:/Main'}, u'name': u'BusinessDailyTemplate.xlsb'}

To the endpoint

[…path to the file…]:/copy

As follows

requests.post('[…path to the file…]BusinessDailyTemplate.xlsb:/copy',
              json={'parentReference': {'path': '/drive/root:/Main'}, 'name': 'BusinessDailyTemplate.xlsb'},
              headers={'Authorization': 'Bearer [...long authorisation token...]'})

As of this Saturday, all similar requests get the following error:

{
    "error": {
        "code": "-1, Microsoft.SharePoint.Client.UnknownError",
        "message": "Unknown Error",
        "innerError": {
            "request-id": "b82e6e21-b75c-4e18-a6fe-5d6a8e4ec99e",
            "date": "2017-11-06T19:11:50"
        }
    }
}

There have been no code changes since Thursday, and the queries worked well on Thursday as well as Friday. They suddenly stopped working on Saturday. Therefore, we are pretty sure the problem isn’t with the code.

We are completely stuck after a few days of testing and brainstorming. Could you help us out?

来源:https://stackoverflow.com/questions/47154944/microsoft-graph-api-for-sharepoint-in-python-microsoft-sharepoint-client-unknow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!