The suggestion at the bottom of the stack trace tells you exactly what you 
need to do.

Add 

- kind: LogsClass
  ancestor: yes
  properties:
  - name: date
    direction: desc


To your index.yaml if it is not already there, then update indexes.
If you have a lot of data it will take some time for the index to be built 
the first time.

T

On Thursday, December 18, 2014 11:17:55 PM UTC+8, Rom Levtov wrote:
>
> So I was making an app in the local server using the 'Google App Engine 
> Launcher' and it was working completely fine. But when I deployed it and 
> looked at in the actual app. It brought back an error and I have no idea 
> what is says and is really confusing since it works in the local server.
>
> This is the error:
>
> Traceback (most recent call last):
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py",
>  line 1535, in __call__
>     rv = self.handle_exception(request, response, e)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py",
>  line 1529, in __call__
>     rv = self.router.dispatch(request, response)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py",
>  line 1278, in default_dispatcher
>     return route.handler_adapter(request, response)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py",
>  line 1102, in __call__
>     return handler.dispatch()
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py",
>  line 572, in dispatch
>     return self.handle_exception(e, self.app.debug)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py",
>  line 570, in dispatch
>     return method(*args, **kwargs)
>   File "/base/data/home/apps/s~romsecretdiary/3.380887165812496139/logs.py", 
> line 309, in get
>     logs = logs_query.fetch()
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/utils.py",
>  line 142, in positional_wrapper
>     return wrapped(*args, **kwds)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py",
>  line 1187, in fetch
>     return self.fetch_async(limit, **q_options).get_result()
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py",
>  line 325, in get_result
>     self.check_success()
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py",
>  line 368, in _help_tasklet_along
>     value = gen.throw(exc.__class__, exc, tb)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/query.py",
>  line 964, in _run_to_list
>     batch = yield rpc
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py",
>  line 454, in _on_rpc_completion
>     result = rpc.get_result()
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
>  line 613, in get_result
>     return self.__get_result_hook(self)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/datastore/datastore_query.py",
>  line 2988, in __query_result_hook
>     yaml_index=yaml, xml_index=xml)
> NeedIndexError: no matching index found.
> The suggested index for this query is:
> - kind: LogsClass
>   ancestor: yes
>   properties:
>   - name: date
>     direction: desc
>
>
> Thanks!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to