I'm receiving the error below with a google app engine search. This error appears to have started recently and is repeatable. Can I ask for a breadcrumb to help interpret/find root cause?
Was something deprecated?
@app.route('/sync/', methods=['GET'])
@app.route('/sync/<yt_video_id>', methods=['POST','GET'])
def sync_video(yt_video_id=None):
GAE_APP_ID = os.environ['GOOGLE_CLOUD_PROJECT']
syncthumb = util.param('syncthumb', bool)
if not syncthumb:
syncthumb = False
if yt_video_id:
print("calling video worker")
util.sync_video_worker(yt_video_id, syncthumb=syncthumb)
success = 'ok: synced ' + yt_video_id
return success
index = search.Index('general-index')
print("found index")
while True:
document_ids = [
document.doc_id
for document
in index.get_range(ids_only=True)]
google.appengine.runtime.apiproxy_errors.RPCFailedError Attempted RPC call without active security ticket Traceback (most recent call last): File "/layers/google.python.pip/pip/lib/python3.12/site-packages/flask/app.py", line 2529, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/sync.py", line 178, in sync_video in index.get_range(ids_only=True)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/datastore/datastore_rpc.py", line 94, in positional_wrapper return wrapped(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/api/search/search.py", line 4024, in get_range return self.get_range_async( ^^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/datastore/datastore_rpc.py", line 94, in positional_wrapper return wrapped(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/api/search/search.py", line 4063, in get_range_async return _RpcOperationFuture( ^^^^^^^^^^^^^^^^^^^^ File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/api/search/search.py", line 266, in init self._rpc.make_call(call, request, response) File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/api/apiproxy_stub_map.py", line 565, in make_call self.__rpc.MakeCall(self.__service, method, request, response) File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/api/apiproxy_rpc.py", line 133, in MakeCall self._MakeCallImpl() File "/layers/google.python.pip/pip/lib/python3.12/site-packages/google/appengine/runtime/default_api_stub.py", line 193, in _MakeCallImpl raise apiproxy_errors.RPCFailedError( google.appengine.runtime.apiproxy_errors.RPCFailedError: Attempted RPC call without active security ticket