API发现服务仅在BigQuery中返回错误

nob*_*ody 6 google-api google-api-client google-bigquery google-apis-explorer

BigQuery的API发现服务运行良好,但是最近突然返回错误。

  1. NG https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest?fields=kind
  2. OK https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest
  3. OK https://www.googleapis.com/discovery/v1/apis/discovery/v1/rest?fields=kind

Google的API发现服务具有fields参数。它在诸如发现(案例3)之类的某些api中效果很好,但在bigquery(案例1)中不起作用。

{
 "error": {
  "code": 400,
  "message": "Request contains an invalid argument.",
  "status": "INVALID_ARGUMENT",
  "details": [
   {
    "@type": "type.googleapis.com/google.rpc.BadRequest",
    "fieldViolations": [
     {
      "field": "kind",
      "description": "Error expanding 'fields' parameter. Cannot find matching fields for path 'kind'."
     }
    ]
   }
  ]
 }
}
Run Code Online (Sandbox Code Playgroud)

如果删除字段(案例2),则效果很好。

google-api-javascript-client有相同的问题

我认为这是Google的错误,还是有任何错误?

dap*_*hez 0

这确实是 Google 的问题,现已修复。