Elastic - ConnectionError('tuple' object has no attribute 'verify_mode')
The pods in the test environment get continuous CrashLoopBackOff with error:
Traceback (most recent call last):
File "/app/./common/elastic_connection_with_retries.py", line 77, in create_elastic_client_with_retry
info = elastic.info()
File "/usr/local/lib/python3.10/site-packages/elasticsearch/client/utils.py", line 168, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/usr/local/lib/python3.10/site-packages/elasticsearch/client/__init__.py", line 294, in info
return self.transport.perform_request(
File "/usr/local/lib/python3.10/site-packages/elasticsearch/transport.py", line 413, in perform_request
raise e
File "/usr/local/lib/python3.10/site-packages/elasticsearch/transport.py", line 381, in perform_request
status, headers_response, data = connection.perform_request(
File "/usr/local/lib/python3.10/site-packages/elasticsearch/connection/http_urllib3.py", line 266, in perform_request
raise ConnectionError("N/A", str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError('tuple' object has no attribute 'verify_mode') caused by: AttributeError('tuple' object has no attribute 'verify_mode')