【发布时间】:2013-07-17 15:02:42
【问题描述】:
今天(格林威治标准时间 +2 上午 10 点)部署在生产环境中的代码在从 Google Drive 文件夹请求文件列表时开始引发越来越多的错误,错误始终为 500“无个别错误”。
2小时后,所有请求都失败了。
文件列表请求代码如下:
'Search for a specific file name
oListReq.Q = "mimeType = 'application/vnd.google-apps.folder' and title = '" + ParentFolder + "' and trashed=false"
oListReq.Fields = "items/id" 'MSO - 20130621 - only ID is needed
oListReq.MaxResults = 10 'Max 10 files (too many I Expect only 1)
'Get the results
oFileList = oListReq.Fetch()
用API Explorer测试同样的请求没有问题,只返回ID。
一步一步尝试找出问题,结果发现所有指定了 Fields 字段的请求都生成了 500 错误(代码中的其他请求有“items(id,alternateLink)”但结果与上面的代码)。
临时修复了注释这些行的代码。
您能否调查一下为什么此过滤器不再适用于 .Net 客户端库?
【问题讨论】:
-
对我们来说也是个问题。
标签: vb.net google-drive-api google-api-dotnet-client