-
Notifications
You must be signed in to change notification settings - Fork 615
Datastore Query generates Bad Request with select+filter attached. #1016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting! @pcostell is this us or an issue of indexes? |
Hi - some added information - and maybe this is why there is this issue... The "id" column that I'm trying to filter/select is not indexed. Does the gcloud lib support tagging fields as indexed? |
Yes, the id must be indexed, but it should be indexed by default. In fact Is there not more information in the returned error message? I think the On Fri, Dec 11, 2015, 3:33 PM Christopher Eaton [email protected]
|
Hi @pcostell,
|
Thanks! That's it, if I change the op to something other than equality it works. |
Turns out the data of the response body is an ascii array which says: @stephenplusplus - maybe the body should get parsed into a string? |
I believe the body is being returned as a Buffer because that's just how the request library we're using does it. We wrap that raw response and return it in our custom I played around with a 412 - Precondition Failed error. The response body is a buffer, but stringified ( In this case, it would look like:
|
I have a pretty basic entity and am attempting to leverage a query to select it. But when I use the "select" function on the query (in conjunction with a "filter"), and then run the query, it generates a Bad Request error. Removing the "select" allows the query to run ok.
I can run either select or filter independently and they both work ok.
Failing query:
Creates Error:
Running
or
works fine and returns the results expected.
The text was updated successfully, but these errors were encountered: