Error messages

This document describes client-side, proxy, connectivity, and Google Cloud console error messages that you might encounter when working with BigQuery.

Error table

If you use the bq command-line tool to check job status, the error object isn't returned by default. To view the error object and the corresponding reason property, use the --format=prettyjson flag—for example, bq --format=prettyjson show -j <var>JOB_ID</var>. To view verbose logging for the bq tool, use --apilog=stdout. To learn more about troubleshooting the bq tool, see Troubleshooting CLI commands.

The following table lists client-side and proxy error messages that aren't returned directly by the BigQuery API:

Error message HTTP code Description Troubleshooting
attributeError 400

User code references an object attribute that does not exist.

Ensure that the object you're working with has the attribute you're trying to access. For more information about this error, see AttributeError.

proxyAuthenticationRequired 407

The client request lacks valid authentication credentials for the proxy server. For more information, see 407 Proxy Authentication Required.

Troubleshooting is specific to your environment. If you receive this error while working in Java, ensure you have set both the jdk.http.auth.tunneling.disabledSchemes= and jdk.http.auth.proxying.disabledSchemes= properties with no value following the equal sign.

Connectivity error messages

The following table lists error messages that you might see because of intermittent connectivity issues when using the client libraries or calling the BigQuery API from your code:

Error message Client library or API Troubleshooting
com.google.cloud.bigquery.BigQueryException: Read timed out Java Set a larger timeout value.
Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset at com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc.translate(HttpBigQueryRpc.java:115) Java Implement a retry mechanism and set a larger timeout value.
javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake Java Implement a retry mechanism and set a larger timeout value.
BrokenPipeError: [Errno 32] Broken pipe Python Implement a retry mechanism. For more information about this error, see BrokenPipeError.
Connection aborted. RemoteDisconnected('Remote end closed connection without response' Python Set a larger timeout value.
SSLEOFError (EOF occurred in violation of protocol) Python The request payload exceeds the allowed transport size and is rejected before an HTTP 413 (ENTITY_TOO_LARGE) error can be generated. Reduce the size of the request.
TaskCanceledException: A task was canceled .NET library Increase the timeout value on the client side.
google.api_core.exceptions.PreconditionFailed: 412 PATCH Python An HTTP update request failed because the ETag in the HTTP header is outdated or the underlying table or dataset resource was modified since the object was instantiated. Ensure that the ETag is current, and recreate the client object if necessary.
Failed to establish a new connection: [Errno 110] Connection timed out Client Libraries The client connection terminated or reached the end-of-file (EOF) unexpectedly while streaming or reading data from BigQuery. Implement a retry mechanism and set a larger timeout value.
socks.ProxyConnectionError: Error connecting to HTTP proxy IP_ADDRESS:8080: [Errno 110] Connection timed out Client Libraries Troubleshoot proxy status and settings. Implement a retry mechanism and set a larger timeout value.
Received an unexpected EOF or 0 bytes from the transport stream Client Libraries Implement a retry mechanism and set a larger timeout value.

Google Cloud console error messages

The following table lists error messages that you might see while you work in the Google Cloud console.

Error message Description Troubleshooting
Unknown error response from the server. This error appears when the Google Cloud console receives an unknown error from the server; for example, when you click a dataset or other type of link, and the page can't be displayed. Switch to your browser's incognito, or private, mode and repeat the action that resulted in the error. If no error results in incognito mode, then the error might be due to a browser extension, such as an ad blocker. Disable your browser extensions while not in incognito mode, and see if that resolves the issue.