c# - Google Drive api 在列出和下载大量文件时返回 500 内部错误

标签 c# google-drive-api

9/17/2013 3:04 PM Error: Google.GoogleApiRequestException: Google.Apis.Requests.RequestError
Internal Error [500]
Errors [
    Message[Internal Error] Location[ - ] Reason[internalError] Domain[global]
]

    at Google.Apis.Requests.Request.AsyncRequestResult.GetResponse()
   at Google.Apis.Requests.ClientServiceRequest`1.GetResponse()
   at Google.Apis.Requests.ClientServiceRequest`1.Fetch()

我尝试下载15GB的文件,每个文件大小为2MB,页面大小为100。下载1500个文件后,出现上述错误。这是API中的错误吗?请帮忙。 注意:我正在正确地恢复 token 。

最佳答案

API 文档 suggests implementing an exponential backoff响应 500 内部错误。

这是一个例子 retry helper class你可以使用。

关于c# - Google Drive api 在列出和下载大量文件时返回 500 内部错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18846892/

相关文章:

c# - 是否有免费的工具/插件可以为 VS C# 即时格式化代码等?

c# - 将鼠标侧键绑定(bind)到 VisualStudio 操作

python - 尝试使用适用于 python 的 Google API 客户端将 UTF-8 文本文件上传到 Google Drive 时,出现 UnicodeDecodeError

使用 GoogleDrive SDK 的 iOS 应用即将投入生产

C#:如何在一个文件中读取 'éóú' 和 öäü 等字符?

c# - 如何使用 LinQ 按值分组获取字典中的键列表

c# - 在 C# 中使用密码保护 Excel 文件

google-apps-script - 通过 Google Apps 脚本发布 Google 电子表格

android - Google Drive Android API 未激活

go - 如何使用 Go 接口(interface)来测试 Google API Golang 库?