Skip to content
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

SearchAPI - Index.get_range(ids_only=True) fails with 500 internal server error #2942

Open
scragraham opened this issue Dec 14, 2018 · 0 comments

Comments

@scragraham
Copy link
Contributor

Summary
There is a call to /python/search/clean-up during the unittests which fails with a 500 internal server error.

Application Code

class CleanUpHandler(webapp2.RequestHandler):

  def post(self):
    indexes = search.get_indexes()
    for index in indexes:
      doc_ids = index.get_range(ids_only=True)
      index.delete(doc_ids)

Expected
Documents should be deleted from the Index

Actual
500 Internal server error is encountered.

Application Logs

ERROR    2018-12-12 20:06:54,350 webapp2.py:1528] Required field: status not set.
Traceback (most recent call last):
  File "/root/appscale/AppServer/lib/webapp2-2.3/webapp2.py", line 1511, in __call__
    rv = self.handle_exception(request, response, e)
  File "/root/appscale/AppServer/lib/webapp2-2.3/webapp2.py", line 1505, in __call__
    rv = self.router.dispatch(request, response)
  File "/root/appscale/AppServer/lib/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/root/appscale/AppServer/lib/webapp2-2.3/webapp2.py", line 1077, in __call__
    return handler.dispatch()
  File "/root/appscale/AppServer/lib/webapp2-2.3/webapp2.py", line 547, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/root/appscale/AppServer/lib/webapp2-2.3/webapp2.py", line 545, in dispatch
    return method(*args, **kwargs)
  File "/var/apps/hawkeyepython27_default_v1_1544644216773/app/search.py", line 104, in post
    indexes = search.get_indexes()
  File "/root/appscale/AppServer/google/appengine/api/search/search.py", line 672, in get_indexes
    fetch_schema=fetch_schema, **kwargs)
  File "/root/appscale/AppServer/google/appengine/api/search/search.py", line 719, in _GetIndexes
    apiproxy_stub_map.MakeSyncCall('search', 'ListIndexes', request, response)
  File "/root/appscale/AppServer/google/appengine/api/apiproxy_stub_map.py", line 94, in MakeSyncCall
    return stubmap.MakeSyncCall(service, call, request, response)
  File "/root/appscale/AppServer/google/appengine/api/apiproxy_stub_map.py", line 326, in MakeSyncCall
    rpc.CheckSuccess()
  File "/root/appscale/AppServer/google/appengine/api/apiproxy_rpc.py", line 234, in _make_sync_call
    self.stub.MakeSyncCall(service, call, request, response)
  File "/root/appscale/AppServer/google/appengine/ext/remote_api/remote_api_stub.py", line 201, in MakeSyncCall
    self._MakeRealSyncCall(service, call, request, response)
  File "/root/appscale/AppServer/google/appengine/ext/remote_api/remote_api_stub.py", line 238, in _MakeRealSyncCall
    raise pickle.loads(response_pb.exception())
ProtocolBufferDecodeError: Required field: status not set.
INFO     2018-12-12 20:06:54,360 module.py:651] default: "POST /python/search/clean-up HTTP/1.0" 500 228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant