Cloud Tasks在\“指定的”区域中不可用

时间:2018-02-06 08:54:54

标签: java task-queue google-apis-explorer

我在app引擎上运行了一个应用程序。有两个组件,一个在App引擎上执行,另一个在Compute引擎上执行。他们通过任务队列进行通信。升级到版本2后,我收到以下错误:

   {
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Cloud Tasks is not available in the \"us-central1-f\" region.",
    "reason" : "badRequest"
  } ],
  "message" : "Cloud Tasks is not available in the \"us-central1-f\" region.",
  "status" : "INVALID_ARGUMENT"
}
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
    at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
    at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1049)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
    at com.ytg.infra.messaging.taskqueue_api.Quickstart.pullTask(Quickstart.java:147)
    at com.ytg.infra.messaging.taskqueue_api.Quickstart.main(Quickstart.java:119)

注意:我已经通过了适当的论据。

1 个答案:

答案 0 :(得分:0)

经过研究,我能够自行解决此问题,下面提供解决方案。

<example[^>]+command='delete'[^>]*>.*?<\/example>

这解决了我的问题。对不起,晚发。