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 — Map gRPC errors in datastore run_query onto 'google.cloud.exceptions'. by dhermes · Pull Request #2496 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

Fixes #2494.

Sorry, something went wrong.

Uh oh!

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

All reactions
@dhermes
Catching gRPC error in datastore run_query and converting to our error.
8c21ded
Fixes googleapis#2494.
@dhermes dhermes added api: datastore Issues related to the Datastore API. grpc labels Oct 4, 2016
@dhermes dhermes assigned daspecster, tseaver and theacodes Oct 4, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 4, 2016
@dhermes

dhermes commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author

It may be worth putting a try/except around every method and using the mapping provided in code.proto

All reactions

Sorry, something went wrong.

Uh oh!

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

@theacodes

theacodes commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

It may be worth putting a try/except around every method and using the mapping provided in code.proto

Yeah, this LGTM to me as a temporary fix, but I feel it'd be more thorough to do that.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes dhermes mentioned this pull request Oct 4, 2016
Use catch-all gRPC StatusCode remapping to our native errors in datastore #2497
Closed
@dhermes

dhermes commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author

Filed #2497

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver reviewed Oct 4, 2016
View reviewed changes
Comment thread datastore/unit_tests/test_connection.py

exc_state = _RPCState((), None, None, StatusCode.CANCELLED, None)
exc = GrpcRendezvous(exc_state, None, None, None)
self._run_query_failure_helper(exc, GrpcRendezvous)

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.

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 merged commit 2acda27 into googleapis:master Oct 4, 2016
@dhermes
dhermes deleted the fix-2494 branch October 4, 2016 20:53
@dhermes

dhermes commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver Sorry merged based on @jonparrott LGTM. Happy to revert / quick fix if you have concerns

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

No worries.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes dhermes mentioned this pull request Oct 12, 2016
Cut 0.20.1 datastore release. #2530
Merged
@tseaver tseaver changed the title Catching gRPC error in datastore run_query and converting to our error. Map gRPC errors in datastore run_query onto 'google.cloud.exceptions'. Oct 12, 2016
This was referenced Oct 18, 2016
datastore: unclear exception when query fails due to no index #2555
Closed
Add gateway timeout to pubsub pull #2576
Merged
@dhermes dhermes mentioned this pull request Nov 14, 2016
Upgrading core to version to 0.21.0. #2733
Merged
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@dhermes
Merge pull request googleapis#2496 from dhermes/fix-2494
b0c6417
Catching gRPC error in datastore run_query and converting to our error.
@theacodes theacodes unassigned daspecster Sep 28, 2018
parthea pushed a commit that referenced this pull request Nov 24, 2025
@dhermes
Merge pull request #2496 from dhermes/fix-2494
7943b16
Catching gRPC error in datastore run_query and converting to our error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@tseaver tseaver tseaver left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@tseaver tseaver

@theacodes theacodes

Labels

api: datastore Issues related to the Datastore API. cla: yes This human has signed the Contributor License Agreement. grpc

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

@dhermes @theacodes @tseaver @daspecster @googlebot
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.