6

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?

nobody
  • 63
  • 3
  • I am not sure i understand your question. Are you saying there is an error in the JavaScript client library because of the Discovery Service response for tje big query api? Please post the code that is giving you this error. – Linda Lawton - DaImTo Apr 04 '19 at 11:54
  • 3
    I agree it seems to be a Google issue. I created a ticket for the issue, please star it: https://issuetracker.google.com/issues/129897211 – daphshez Apr 04 '19 at 13:36
  • Agreed this seems to be a Google issue, and as far as I can tell it's isolated to BQ – sammy88888888 Apr 04 '19 at 13:39

1 Answers1

0

This was indeed a Google issue and is now fixed.

daphshez
  • 9,272
  • 11
  • 47
  • 65