API Discovery Service return error only in BigQuery
Asked Answered
I

1

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?

Iaverne answered 4/4, 2019 at 11:17 Comment(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.Dierdre
I agree it seems to be a Google issue. I created a ticket for the issue, please star it: issuetracker.google.com/issues/129897211Ledge
Agreed this seems to be a Google issue, and as far as I can tell it's isolated to BQBaskin
L
0

This was indeed a Google issue and is now fixed.

Ledge answered 8/4, 2019 at 16:58 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.