2

我在 Drive 上有一个文件(恰好没有内容),我正在尝试更新它的 indexableText。可悲的是,我不是一个快乐的微笑 200,而是一张悲伤的脸 500。

要求 ...

PUT https://www.googleapis.com/drive/v2/files/0Bw3h_yCVtXbbTndiNFFkLUEwWlk?useContentAsIndexableText=false&key={YOUR_API_KEY}

Content-Type:  application/json
Authorization:  Bearer ya29.AHES6ZQcOn0zqZoxM_4Wrpj00xPIb2BuDjAai0qLUnE6-JVdxMUsDg
X-JavaScript-User-Agent:  Google APIs Explorer

{
 "indexableText": {
  "text": "foofoo barbar"
 }
}

回复...

500 Internal Server Error

- Show headers -

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "internalError",
    "message": "Internal Error"
   }
  ],
  "code": 500,
  "message": "Internal Error"
 }
}
4

1 回答 1

1

看起来内部错误正在被触发,因为当我最初插入文件时,useContentAsIndexableText=true。我猜 Drive 不喜欢文件的 contentAsIndexable 状态可以改变的想法。

已经过去了,我现在正在点击 更新文件似乎无法更新 indexableText

于 2013-10-11T15:55:15.980 回答