【问题标题】:Google Drive: 500 Internal ErrorGoogle 云端硬盘:500 内部错误
【发布时间】:2012-09-20 11:26:24
【问题描述】:

我在请求某些文件时收到此异常。有什么办法调试吗?

com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 OK
{
  "code" : 500,
  "errors" : [ {
    "domain" : "global",
    "message" : "Internal Error",
    "reason" : "internalError"
  } ],
  "message" : "Internal Error"
}
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:159)
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.execute(GoogleJsonResponseException.java:203)
    at com.google.api.client.googleapis.services.GoogleClient.executeUnparsed(GoogleClient.java:237)
    at com.google.api.client.http.json.JsonHttpRequest.executeUnparsed(JsonHttpRequest.java:207)
    at com.google.api.services.drive.Drive$Files$Insert.executeUnparsed(Drive.java:307)
    at com.google.api.services.drive.Drive$Files$Insert.execute(Drive.java:331)

【问题讨论】:

    标签: google-drive-api


    【解决方案1】:

    当我尝试创建一个名称为空的文件夹时,似乎会弹出此错误。 更有意义的错误消息会很棒。

    【讨论】:

    • 谢谢,我设法重现了该问题并将其报告给了驱动工程师
    • 已修复。如果您创建一个名称为空的文件夹,则将使用默认名称(例如“新建文件夹”)。
    【解决方案2】:

    在 Ubuntu 16.04 上使用 grive 的版本 0.5.1-dev 我遇到了错误:

    request failed due to temporary error: 500 (body: {
     "error": {
      "errors": [
       {
        "domain": "global",
        "reason": "internalError",
        "message": "Internal Error"
       }
      ],
      "code": 500,
      "message": "Internal Error"
     }
    }
    ). retrying in 5 seconds
    

    它会重试并重复错误。

    解决方案是在目录中创建一个虚拟文件。

    我有opened an issue for this

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-02
      • 1970-01-01
      相关资源
      最近更新 更多