반응형
Recent Posts
Recent Comments
관리 메뉴

개발잡부

ValueError: Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically. 본문

Python

ValueError: Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically.

닉의네임 2022. 5. 10. 14:09
반응형

문재가 이건디

  File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elasticsearch/client/__init__.py", line 203, in __init__
    self.transport = transport_class(_normalize_hosts(hosts), **kwargs)
  File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elasticsearch/transport.py", line 154, in __init__
    self.set_connections(hosts)
  File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elasticsearch/transport.py", line 212, in set_connections
    connections = list(zip(connections, hosts))
  File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elasticsearch/transport.py", line 208, in _create_connection
    return self.connection_class(**kwargs)
  File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elasticsearch/connection/http_urllib3.py", line 188, in __init__
    "Root certificates are missing for certificate "
elasticsearch.exceptions.ImproperlyConfigured: Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically.

 

ValueError: Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically.

 

 

 

pip install

pip install certifi
#이걸 추가했더니 되네 
verify_certs=False
client = Elasticsearch("https://user_id:user_pass@host:443/", ca_certs=False, verify_certs=False )
반응형
Comments