【elasticsearch 依赖 urllib3 请问 是否 urllib3和阿里es、oss的对接出现异常】

 


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "search1212.py", line 182, in <module>
print(get_article(content))
File "search1212.py", line 133, in get_article
data_in_es = es_conn.search(index=TextIndex, doc_type="text", body=body)
File "/root/anaconda3/lib/python3.5/site-packages/elasticsearch/client/utils.py", line 73, in _wrapped
return func(*args, params=params, **kwargs)
File "/root/anaconda3/lib/python3.5/site-packages/elasticsearch/client/__init__.py", line 623, in search
doc_type, '_search'), params=params, body=body)
File "/root/anaconda3/lib/python3.5/site-packages/elasticsearch/transport.py", line 312, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/root/anaconda3/lib/python3.5/site-packages/elasticsearch/connection/http_urllib3.py", line 123, in perform_request
raise ConnectionError('N/A', str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError((<urllib3.connection.HTTPConnection object at 0x7f3a065e42b0>, 'Connection to es-cn-mps.elasticsearch.aliyuncs.com timed out. (connect timeout=10)')) caused by: ConnectTimeoutError((<urllib3.connection.HTTPConnection object at 0x7f3a065e42b0>, 'Connection to es-cn-ms.elasticsearch.aliyuncs.com timed out. (connect timeout=10)'))
[root@d backend]#

 

 

问题描述 : HTTPSConnectionPool(host='gll.oss-cn-beijing.aliyuncs.com', port=443): Max retries exceeded with url: /video/20180703111854520.jpg (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000002A26D3BB278>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。',))  

 


【elasticsearch 依赖 urllib3 请问 是否 urllib3和阿里es、oss的对接出现异常】

 

 

 

 

 

 

 

posted @ 2018-12-12 18:41  papering  阅读(1463)  评论(0编辑  收藏  举报