【问题标题】:ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host=u'localhost', port=9200): Read timed out. (read timeout=10))ConnectionTimeout 导致 - ReadTimeoutError(HTTPConnectionPool(host=u'localhost', port=9200): Read timed out. (read timeout=10))
【发布时间】:2017-09-13 04:25:59
【问题描述】:
在本地系统中弹性搜索完美运行,但是当我尝试在服务器系统中搜索时,它在控制台中显示:“ConnectionTimeout 由 - ReadTimeoutError(HTTPConnectionPool(host=u'localhost', port=9200): 读取超时引起. (读取超时=10))"
【问题讨论】:
标签:
python
django
elasticsearch
【解决方案1】:
您尝试连接的 localhost 值似乎是一个 Unicode 字符串 host=u'localhost。不确定如何将该值获取/分配给变量,但您应该尝试将其编码/转换为 ASCII,以便在 HTTP 连接例程期间可以正确解释它。