Skip to content

Cloud Datastore 'Index Not Found' error somewhat obscure #1030

@OverclockedTim

Description

@OverclockedTim

Using the gcloud-node library to do a query that cannot be fulfilled due to lack of indexing produces the obscure error 412, Precondition Failed error:

{ "code":412,"message":"Precondition Failed",...}

A FAQ or troubleshooting doc would be helpful, as would simply including a bit more information in the error itself. Something along the lines of "Precondition Failed: The request index required for this query is not found. To enable this query, please add it by <instructions/url-to-instructions/etc>

The Java Appengine version of this error message is extremely helpful and includes both the root cause of the error and instructions on how to create an appropriate index.

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.core

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions