Search code examples
google-apigoogle-bigquerygoogle-api-clientgoogle-apis-explorer

API Discovery Service return error only in BigQuery


API Discovery Service of BigQuery had worked well, but recently it suddenly returns error.

  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's API Discovery Service has fields parameter. It works well in some api such as discovery (case 3), but doesn't work in bigquery (case 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'."
     }
    ]
   }
  ]
 }
}

It works well if fields is deleted (case 2).

google-api-javascript-client has same issue.

I think this is bug of google, or is there any mistake?


Solution

  • This was indeed a Google issue and is now fixed.