Sunday, 27 December 2020

python elasticsearch elasticsearch.exceptions.SSLError: ConnectionError([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056))

I'm trying to connect to an elasticsearch server using the elasticsearch package, but getting this error

  File "/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/client/utils.py", line 152, in _wrapped
    return func(*args, params=params, headers=headers, **kwargs)
  File "/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/client/indices.py", line 331, in exists
    "HEAD", _make_path(index), params=params, headers=headers
  File "/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/transport.py", line 390, in perform_request
    raise e
  File "/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/transport.py", line 365, in perform_request
    timeout=timeout,
  File "/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/connection/http_urllib3.py", line 255, in perform_request
    raise SSLError("N/A", str(e), e)
elasticsearch.exceptions.SSLError: ConnectionError([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056)) caused by: SSLError([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056))

Any ideas what could be fixing the problem ?



from python elasticsearch elasticsearch.exceptions.SSLError: ConnectionError([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056))

No comments:

Post a Comment