问题
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