似乎Google Drive API方法文件()。patch(,).execute()已經停止工作並且拋出異常。如果您「嘗試」,Google的參考頁面https://developers.google.com/drive/v2/reference/files/patch也可以觀察到此問題。驅動器API文件修補方法失敗,出現「先決條件失敗」「conditionNotMet」
的異常反應是:
500 Internal Server Error
cache-control: private, max-age=0
content-encoding: gzip
content-length: 162
content-type: application/json; charset=UTF-8
date: Thu, 22 Aug 2013 12:32:06 GMT
expires: Thu, 22 Aug 2013 12:32:06 GMT
server: GSE
{
"error": {
"errors": [
{
"domain": "global",
"reason": "conditionNotMet",
"message": "Precondition Failed",
"locationType": "header",
"location": "If-Match"
}
],
"code": 500,
"message": "Precondition Failed"
}
}
這是真正影響我們的應用程序。
使用更新,而不是修補是可取的,迄今爲止已爲我工作。感謝您的建議。沒有關於Google修復Patch()或爲什麼破解的消息。 – bleeper