Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Troubleshooting Errors

When a BigQuery request causes an error, the response differs, depending on whether it was thrown by the token-issuing authority or the API itself.

Non-Token Errors

If the error is not an authentication error, the response will include an HTTP error code and an errors object .

If you're using a Google API client library, see your library's documentation to learn what errors it throws. You can examine either the HTTP error code or the error.code value, whichever is more convenient in your client. The outermost code and message values will usually correspond to the first entry in the errors array.

Example

GET https://www.googleapis.com/bigquery/v2/projects/12345/datasets/foo
Response:
[404]
{
  "error": {
  "errors": [
  {
    "domain": "global",
    "reason": "notFound",
    "message": "Not Found: Dataset myproject:foo"
  }],
  "code": 404,
  "message": "Not Found: Dataset myproject:foo"

}

Token Generation Errors

Errors thrown by the OAuth token generation system return the following JSON object, as defined by the OAuth2 specification .

{"error" : " description_string "}

The error should be accompanied by an HTTP 400 Bad Request error. description_string is one of the error codes defined by the OAuth2 specification. For example:

{"error":"invalid_client"}

Back to top

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.