API Discovery Service of BigQuery had worked well, but recently it suddenly returns error.
- NG https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest?fields=kind
- OK https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest
- 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?