ElasticSearch清理python的aws lambda问题

pxy2qtax  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(0)|浏览(333)

我在我的组织中继承了一段lambda,但它没有处理以下错误,它作为python lambda代码运行,每天作为cron作业触发:

  1. aws lambda invoke --function-name es-cleanup-lambda outfile --payload '{"es_endpoint":"search-t-1.es.amazonaws.com"}'
  2. ``` `{"errorMessage": "'AWSPreparedRequest' object has no attribute 'hooks'", "errorType": "AttributeError", "stackTrace": [["/var/task/es-cleanup.py", 169, "lambda_handler", "for index in es.get_indices():"], ["/var/task/es-cleanup.py", 154, "get_indices", "return self.send_to_es(\"/_cat/indices\")"], ["/var/task/es-cleanup.py", 125, "send_to_es", "res = session.send(preq)"], ["/var/runtime/botocore/vendored/requests/sessions.py", 634, "send", "hooks = request.hooks"]]` 不知道为什么awsprepared方法调用缺少钩子,我们是否认为我需要更新boto lib,但目前不知何故还不清楚。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题