似乎一夜之间,Google Drive API 方法 files().patch( , ).execute() 已经停止工作并引发异常。如果您“尝试一下”,也可以通过 Google 的参考页面https://developers.google.com/drive/v2/reference/files/patch观察到这个问题。
异常响应是:
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"
}
}
这确实影响了我们的应用程序。