检查 opensearch 索引时出现 ConnectionError(('连接中止。', RemoteDisconnected('远程端关闭连接而无响应')))

问题描述 投票:0回答:1

当我尝试使用以下代码检查 opensearch 集群中是否存在索引时:

self.opensearch_db.indices.exists(index = index_name)

我收到以下错误:

ConnectionError: ConnectionError(('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))) caused by: ProtocolError(('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))

我尝试通过邮递员连接到 opensearch 集群,一切都很好。

elasticsearch opensearch
1个回答
0
投票

正如 Yassine 在原始问题下评论的那样,添加以下内容可以修复此问题:

use_ssl=True, verify_certs=False
© www.soinside.com 2019 - 2024. All rights reserved.