AssertionError: No api proxy found for service "search"

115 views
Skip to first unread message

Baji Yakkati

unread,
Dec 7, 2016, 3:27:59 PM12/7/16
to Google App Engine
Hello Team,

I am getting this error while I am trying to search the index.

from google.appengine.api import search
    index = search.Index('products')
    query_string = 'product: piano AND price < 5000'
    results = index.search(query_string)
    for scored_document in results:
        print(scored_document)

File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_rpc.py", line 105, in positional_wrapper
    return wrapped(*args, **kwds)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\search\search.py", line 3781, in get
    return self.get_async(doc_id, deadline=deadline).get_result()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_rpc.py", line 105, in positional_wrapper
    return wrapped(*args, **kwds)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\search\search.py", line 3790, in get_async
    future = self.get_range_async(start_id=doc_id, limit=1, deadline=deadline)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\datastore\datastore_rpc.py", line 105, in positional_wrapper
    return wrapped(*args, **kwds)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\search\search.py", line 3971, in get_range_async
    'ListDocuments', request, response, deadline, hook)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\search\search.py", line 262, in __init__
    self._rpc = apiproxy_stub_map.UserRPC('search', deadline=deadline)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 414, in __init__
    self.__rpc = CreateRPC(service, stubmap)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 68, in CreateRPC
    assert stub, 'No api proxy found for service "%s"' % service
AssertionError: No api proxy found for service "search"

Please let me know, what is the cause behind this?

Nicholas (Google Cloud Support)

unread,
Dec 8, 2016, 11:22:47 AM12/8/16
to Google App Engine
Hey Baji,

This seems like a report better suited for the App Engine public issue tracker.  From the error message, it appears the application cannot find the service stub for the search service.  When posting to the public issue tracker, please provide the following information so as to speed up the investigation into this issue:
  • What version of the App Engine SDK for Python are you using?
  • Are you using the standard or flexible environment?
  • Are you getting this error with dev_appserver.py, the production environment or both?
Lastly, after you've filed a public issue, please include a link to it here so others encountering this post can follow through.

Nicholas
Reply all
Reply to author
Forward
0 new messages