当我尝试使用以下代码检查 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 集群,一切都很好。
正如 Yassine 在原始问题下评论的那样,添加以下内容可以修复此问题:
use_ssl=True, verify_certs=False