Bigquery java API 无法加载数据 - "file does not exist on cloud"



使用Java API将数据加载到Bigquery中失败,表示该文件在云上不存在。但是,Google云存储位置是正确的,并且在使用浏览器加载数据时工作正常。

这在 Google Cloud Storage JSON API v1 发布之前曾经有效。我不确定这是否相关。

知道最近有什么变化吗?

我调查了一下,结果发现是 api 问题:

这就是失败的原因:

cloudstorage.objects().get(bucket, uri).execute();

这是错误消息:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Version v1beta2 of this API is no longer available. Please try again using JSON API v1. To request temporary reinstatement for your project, please visit https://docs.google.com/forms/d/1isIxBZg3rsQbDN_TOalZaz1WT_ebJchsrlv-Qr_r9mY/viewform?entry.244568692=866447901597&entry.176324201=v1beta2&entry.1071661541-Qr_r9mY/prefill",
    "reason" : "turnedDown",
    "extendedHelp" : "https://cloud.google.com/storage/docs/json_api/v1/how-tos/migrate"
  } ],
  "message" : "Version v1beta2 of this API is no longer available. Please try again using JSON API v1. To request temporary reinstatement for your project, please visit https://docs.google.com/forms/d/1isIxBZg3rsQbDN_TOalZaz1WT_ebJchsrlv-Qr_r9mY/viewform?entry.244568692=866447901597&entry.176324201=v1beta2&entry.1071661541-Qr_r9mY/prefill"
}

相关内容

最新更新