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 — datastore: unclear exception when query fails due to no index · Issue #2555 · googleapis/google-cloud-python

datastore: unclear exception when query fails due to no index #2555

New issue
Copy link
New issue
Copy link
Closed
Closed
datastore: unclear exception when query fails due to no index#2555
Copy link
Assignees
lukesneeringer
Labels
api: datastoreIssues related to the Datastore API.backendpriority: p2Moderately-important priority. Fix may not be included in next release.

Description

@tiny-hydra
tiny-hydra
opened on Oct 17, 2016
Issue body actions

When applying a specific combination of filters to a query, if an index is not set an unusual exception occurs. Example:

firstname = "foo"
last_checked = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(hours=1)
query = client.query(kind='people')
query.add_filter('first_name', '=', firstname)
query.add_filter('created_date', '>', last_checked)
results = list(query.fetch())

exception:

<class 'tuple'>: (<class 'grpc._channel._Rendezvous'>, <_Rendezvous of RPC that terminated with (StatusCode.INTERNAL, {"created":"@1476737648.089000000","description":"RST_STREAM","file":"src/core/ext/transport/chttp2/transport/frame_rst_stream.c","file_line":107,"http2_error":2})>, <traceback object at 0x000002325F840FC8>)

Please supply actionable text in the provided response

Activity

  1. tseaver
    added
    api: datastoreIssues related to the Datastore API.
    backend
    on Oct 17, 2016
  2. tseaver commented on Oct 17, 2016

    @tseaver
    tseaver
    on Oct 17, 2016
    Contributor
    More actions

    @tinyhydra Thanks for the report. I'm not sure how to address it in google-cloud-python: ITSM that the back-end is not providing any information that would let us produce a better error message.

    /cc @jonparrott Do you know who we should talk to on the back-end team?

  3. theacodes commented on Oct 17, 2016

    @theacodes
    theacodes
    on Oct 17, 2016
    Contributor
    More actions

    @pcostell maybe?

  4. dhermes commented on Oct 18, 2016

    @dhermes
    dhermes
    on Oct 18, 2016
    Contributor
    More actions

    INTERNAL maps to a 500 error. @jonparrott and I had discussed having a generic catch-all to remap gRPC exceptions to our google.cloud.exceptions classes.

    I'm not sure if a typical 500 error has more useful info?

  5. dhermes commented on Oct 18, 2016

    @dhermes
    dhermes
    on Oct 18, 2016
    Contributor
    More actions

    See the mapping and previous discussion.

    I got a little chuckle out of the description for INTERNAL:

    Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors.

  6. pcostell commented on Oct 18, 2016

    @pcostell
    pcostell
    on Oct 18, 2016
    Contributor
    More actions

    Hey all --

    This is likely due to gRPC issues that cannot translate newlines in exceptions (which were included in index precondition failures since we give you the actual error message).

    These used to throw the correct status (PRECONDITION), but have since changed to be 500s.

    We've fixed this to not use newlines for gRPC messages, @eddavisson can comment on the status of that change.

  7. pcostell commented on Oct 18, 2016

    @pcostell
    pcostell
    on Oct 18, 2016
    Contributor
    More actions

    This issue can likely be closed as a dupe of googleapis/google-cloud-datastore#132

  8. eddavisson commented on Oct 18, 2016

    @eddavisson
    eddavisson
    on Oct 18, 2016
    More actions

    The fix is expected to be available in production this week. I'll update googleapis/google-cloud-datastore#132 once it's out.

  9. lukesneeringer
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Apr 19, 2017
  10. lukesneeringer commented on Aug 11, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 11, 2017
    Contributor
    More actions

    Hello,
    One of the challenges of maintaining a large open source project is that sometimes, you can bite off more than you can chew. As the lead maintainer of google-cloud-python, I can definitely say that I have let the issues here pile up.

    As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates.

    My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request.

    Thank you!

  11. lukesneeringer
    closed this as completedon Aug 11, 2017
  12. JustinBeckwith
    assigned
    lukesneeringer
    on Feb 1, 2021
  13. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    samples: add samples from pubsub/cloud-client (#134)

    8c90f22

    Pub/Sub: update how to test with mock [(#2555)](GoogleCloudPlatform/p…

    2cdac26
  14. ohmayr
    added a commit that references this issue on Mar 13, 2026

    chore: replace old python teams with cloud-sdk-python-team (#2555)

    f5a618e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lukesneeringer
    lukesneeringer

Labels

api: datastoreIssues related to the Datastore API.backendpriority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.