I have an issue, I cannot to connect to my Elasticsearch cluster from python client using its cloud_id.
I am getting following error:
File "D:\Data\Hamid\Workspace\Python\MyTools\venv\lib\site-packages\elasticsearch\client\utils.py", line 347, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "D:\Data\Hamid\Workspace\Python\MyTools\venv\lib\site-packages\elasticsearch\client\__init__.py", line 296, in info
"GET", "/", params=params, headers=headers
File "D:\Data\Hamid\Workspace\Python\MyTools\venv\lib\site-packages\elasticsearch\transport.py", line 417, in perform_request
self._do_verify_elasticsearch(headers=headers, timeout=timeout)
File "D:\Data\Hamid\Workspace\Python\MyTools\venv\lib\site-packages\elasticsearch\transport.py", line 606, in _do_verify_elasticsearch
raise error
File "D:\Data\Hamid\Workspace\Python\MyTools\venv\lib\site-packages\elasticsearch\transport.py", line 570, in _do_verify_elasticsearch
"GET", "/", headers=headers, timeout=timeout
File "D:\Data\Hamid\Workspace\Python\MyTools\venv\lib\site-packages\elasticsearch\connection\http_urllib3.py", line 291, in perform_request
self._raise_error(response.status, raw_data)
File "D:\Data\Hamid\Workspace\Python\MyTools\venv\lib\site-packages\elasticsearch\connection\base.py", line 329, in _raise_error
status_code, error_message, additional_info
elasticsearch.exceptions.TransportError: TransportError(303, '')
Thank you for your reply. Actually the cloud_id is correct and the .net is the URL used to access Elasticsearch cluster. Even when I copied Elasticserach endpoint from ECE UI and use it in the browser it is not responding, I am getting an error.
I think the error is due to Elasticsearch not accessible, I dont know why. Kibana is working fine.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.