我在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"
}
}
答案 0 :(得分:1)
看起来内部错误正在被触发,因为当我最初插入文件时,useContentAsIndexableText = true。我猜Drive不喜欢文件的contentAsIndexable状态可以改变的想法。
过了那个,我现在正打 Update file seems to not be able to update indexableText