GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use status_pb2.Status to parse error messages from Datastore by pcostell · Pull Request #1618 · googleapis/google-cloud-python

Conversation

@pcostell

@pcostell pcostell commented Mar 15, 2016

Copy link
Copy Markdown
Contributor

Addresses #1617

Note that status has other information too that likely should get exposed. This is just an example of what the expected response is.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 15, 2016
@pcostell pcostell mentioned this pull request Mar 15, 2016
datastore v1beta3 doesn't handle errors properly #1617
Closed
@dhermes

dhermes commented Mar 16, 2016

Copy link
Copy Markdown
Contributor

@pcostell Why not merge? Other than adding status_pb2 unnecessarily (since it is in googleapis-common-protos) this looks fine.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pcostell pcostell changed the title DONOTSUBMIT: Example using Status Use status_pb2.Status to parse error messages from Datastore Mar 16, 2016
@pcostell

pcostell commented Mar 16, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes - Sure I can submit it (I wasn't sure if we wanted to do more with the error than just grab the message, but I added a todo).

PTAL.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Mar 16, 2016

Copy link
Copy Markdown
Contributor

The pylint failure looks like it should be addressed by merging the change from #1583 into the datastore-v1beta3 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Mar 16, 2016
View reviewed changes
Comment thread gcloud/datastore/connection.py Outdated
if status != '200':
raise make_exception(headers, content, use_json=False)
# TODO(pcostell): There is more information in the error besides
# the message that should be passed on.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Mar 16, 2016

Copy link
Copy Markdown
Contributor

@pcostell Too much to ask to squash the 4 commits down to 1?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pcostell
pcostell force-pushed the datastore-v1beta3 branch from f5e686a to 5b3b7d5 Compare March 16, 2016 20:11
@pcostell

pcostell commented Mar 16, 2016

Copy link
Copy Markdown
Contributor Author

No more TODO and squashed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Mar 16, 2016

Copy link
Copy Markdown
Contributor

Great. In order to pass the lint environment, the easiest way will be to update scripts/pylintrc_default as in #1583:

 # DEFAULT:  ignored-modules=
+# RATIONALE:  six aliases stuff for compatibility.
+#             google.protobuf fixes up namespace package "late".
+ignored-modules = six, google.protobuf
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Mar 18, 2016

Copy link
Copy Markdown
Contributor

@pcostell, rebase now and we can get this merged?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pcostell
Parse Datastore error message using Status protocol buffer.
3b44173
@googlebot

googlebot commented Mar 18, 2016

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Mar 18, 2016
@pcostell
pcostell force-pushed the datastore-v1beta3 branch from 30d3c65 to 3b44173 Compare March 18, 2016 16:54
@googlebot

googlebot commented Mar 18, 2016

Copy link
Copy Markdown

CLAs look good, thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Mar 18, 2016
@pcostell

pcostell commented Mar 18, 2016

Copy link
Copy Markdown
Contributor Author

Rebased and ready for merge.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Mar 18, 2016

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 3b44173 on pcostell:datastore-v1beta3 into f9e4efc on GoogleCloudPlatform:datastore-v1beta3.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Mar 18, 2016

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 3b44173 on pcostell:datastore-v1beta3 into f9e4efc on GoogleCloudPlatform:datastore-v1beta3.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes added a commit that referenced this pull request Mar 18, 2016
@dhermes
Merge pull request #1618 from pcostell/datastore-v1beta3
50824dd
Use status_pb2.Status to parse error messages from Datastore
@dhermes
dhermes merged commit 50824dd into googleapis:datastore-v1beta3 Mar 18, 2016
parthea pushed a commit that referenced this pull request Nov 24, 2025
@noahdietz @alexander-fenster
fix: ignore_unknown_fields parsing service config (#1618)
cca6aa4
* fix: ignore_unknown_fields parsing service config

* oops capital True

* reformat args

Co-authored-by: Alexander Fenster <[email protected]>

---------

Co-authored-by: Alexander Fenster <[email protected]>
parthea added a commit that referenced this pull request Nov 26, 2025
@parthea @gcf-owl-bot
chore: update templated files (#1618)
d3476ed
* chore: update templated files

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 6, 2026
@gcf-owl-bot
build(deps): [autoapprove] bump pygments from 2.13.0 to 2.15.0 (#1618)
2f816f4
Source-Link: googleapis/synthtool@eaef28e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f8ca7655fa8a449cadcabcbce4054f593dcbae7aeeab34aa3fcc8b5cf7a93c9e

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 9, 2026
@chandra-siri @gcf-owl-bot
feat(zb-experimental): implement open in writer (#1618)
e6a7f97
feat(zb-experimental): implement open in writer

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Apr 1, 2026
@TrevorBergeron
feat: Short circuit query for local scan (#1618)
a558241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@pcostell @dhermes @tseaver @googlebot @coveralls
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.