Add BigQuery example to README.md.#1902
Merged
daspecster merged 2 commits intogoogleapis:masterfrom Jun 27, 2016
Merged
Conversation
| from gcloud import bigquery | ||
| client = bigquery.Client() | ||
| dataset = client.dataset('dataset_name') | ||
| dataset.create() # API request |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Contributor
|
@daspecster similar reminder to close #1899 after merge. |
Contributor
|
LGTM. |
parthea
pushed a commit
that referenced
this pull request
Nov 24, 2025
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea
pushed a commit
that referenced
this pull request
Mar 2, 2026
Improved error handling in `google/auth/compute_engine/_metadata.py` to provide more informative error messages when retries are exhausted. The logic now handles two distinct failure modes: 1. **Connection Errors (Exceptions):** - Exceptions caught during the request (e.g., connection refused) are stored in `last_exception`. - If the retry loop exhausts and `last_exception` is set, a `TransportError` is raised that chains the original exception. This preserves the stack trace and specific error type for debugging. 2. **Retryable HTTP Status Codes:** - If a request completes but returns a retryable status code (e.g., 500, 503), `last_exception` is cleared (set to `None`). - If the retry loop exhausts due to repeated retryable status codes, a `TransportError` is raised that includes the `response.status` and the response body (`error_details`). This ensures the specific server error message is visible. This addresses feedback from PR 1637 by ensuring that "Ran out of retries" scenarios provide the most relevant context: either the underlying exception or the final HTTP error response. --- *PR created automatically by Jules for task [6226991344715693997](https://jules.google.com/task/6226991344715693997) started by @chalmerlowe* --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Chalmer Lowe <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@tseaver there might be a better example to throw in here. If so just let me know and I'll add it.
/cc @dhermes