【发布时间】:2019-10-13 06:19:57
【问题描述】:
在我的 Windows 上,我想将我的 python 程序连接到我在 found.io 上托管的 elasticsearch 集群(通过 heroku。)
到 elasticsearch 的连接超时并给我一个异常说“目标机器主动拒绝它”。
es = Elasticsearch(
[elastic],
# port=443,
use_ssl=True,
verify_certs=True,
ca_certs=certifi.where(),
)
我希望索引,但收到以下错误消息:
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x03A0EC70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x03A0EC70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it)
【问题讨论】:
标签: python elasticsearch github