You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PreconditionFailed: 412 no matching index found. when using inequality filters #1143
File "/Users/sathyanarrayanan/Desktop/app/services/cdr_helper.py", line 528, in fetch_last_users
records, more, cursor = iterator.next_page()
File "/Users/sathyanarrayanan/Desktop/app/gcloud/datastore/query.py", line 388, in next_page
transaction_id=transaction and transaction.id,
File "/Users/sathyanarrayanan/Desktop/app/gcloud/datastore/connection.py", line 257, in run_query
datastore_pb.RunQueryResponse)
File "/Users/sathyanarrayanan/Desktop/app/gcloud/datastore/connection.py", line 108, in _rpc
data=request_pb.SerializeToString())
File "/Users/sathyanarrayanan/Desktop/app/gcloud/datastore/connection.py", line 85, in _request
raise make_exception(headers, content, use_json=False)
PreconditionFailed: 412 no matching index found.
Thanks for teaching me about datetime.datetime.combine!
I'll agree with @tseaver and say that you should double check that your indexes have built and are ready to serve for your project.
Here is a suggestion to make sure your indexes are correct. Make the queries with ndb using the GAE local server (was called dev_appserver, now done via gcloud preview app run app.yaml) and then the GAE local server will automatically generate the index.yaml file you need for those queries.
Activity
tseaver commentedon Sep 18, 2015
What indexes do you see when you look at your project in the Google Developer's Console? E.g., https://console.developers.google.com/project/your-project-123/datastore/indexes
dhermes commentedon Sep 18, 2015
Thanks for teaching me about
datetime.datetime.combine!I'll agree with @tseaver and say that you should double check that your indexes have built and are ready to serve for your project.
Here is a suggestion to make sure your indexes are correct. Make the queries with
ndbusing the GAE local server (was calleddev_appserver, now done viagcloud preview app run app.yaml) and then the GAE local server will automatically generate theindex.yamlfile you need for those queries.sourcepirate commentedon Sep 19, 2015
@tseaver I see the indexes which i already mentioned on the file and it was serving , And it was the first thing i checked after getting this error.
dhermes commentedon Sep 19, 2015
@PlasmaShadow I executed the following snippet in the dev server:
The dev server automatically generated the following:
If you are actually storing keys with ancestors, you'll need to use the
Query.ancestorsetter.sourcepirate commentedon Sep 24, 2015
thanks guys, it really worked.
dhermes commentedon Sep 24, 2015
Great to hear!
feat: add Idempotency to Cloud Bigtable MutateRowsRequest API (#1143)
chore: librarian generate pull request: 20260127T190835Z (#15489)
chore: librarian release pull request: 20260129T080803Z (#15492)
feat: add Idempotency to Cloud Bigtable MutateRowsRequest API (#1143)
chore(deps): update all dependencies (#1143)
samples: add cloud client samples from python-docs-samples (#626)
build(deps): Bump pyjwt from 2.4.0 to 2.12.0 in /.kokoro (#460)