"字段'资源的值无效。@':' @'。找不到资源。"

时间:2016-03-14 18:25:26

标签: java google-compute-engine

我尝试使用Google api客户端库,Google java资源管理器库和JAVA的Google api服务库来使用Google计算引擎。 现在我尝试运行然后删除实例,有时当我在我的请求中轮询实例的删除过程时,例如:

 HttpTransport: {
 "kind": "compute#operation",
 "id": "12073243417043395137",
 "name": "operation-1457973162309-52e03d43e2589-0c0c6559-bfd36e97",
 "zone": "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a",
 "operationType": "delete",
 "targetLink": "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instances/a4e7s5123-123",
 "targetId": "11502357121231933",
 "status": "RUNNING",
 "user": "user@myproject.iam.gserviceaccount.com",
 "progress": 0,
 "insertTime": "2016-03-14T09:32:42.390-07:00",
 "startTime": "2016-03-14T09:32:42.801-07:00",
 "endTime": "2016-03-14T09:32:47.281-07:00",
 "selfLink": "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/operations/operation-1457973162309-52e04d46e7589-0c0ce559-1234567"
} 

我收到了一个奇怪且令人困惑的错误:

HttpTransport: {
 "error": {
  "errors": [
   {
    "code": "INVALID_FIELD_VALUE",
    "message": "Invalid value for field 'resource.@': '@'. Resource was not found."
   }
  ]
 },
 "httpErrorStatusCode": 400,
 "httpErrorMessage": "BAD REQUEST",
}

我搜索过但只发现了this个问题,这个问题不大。如果有人遇到这个问题,请给我一些信息,或者我应该如何处理呢?谢谢。

0 个答案:

没有答案