맥 환경에서 터미널에 아래와 같은 에러가 발생했다.
File "/Users/mac/Desktop/study/sparta/project/spartaSPA/venv/lib/python3.8/site-packages/pymongo/topology.py", line 238, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: ac-p7gfhzr-shard-00-01.1vhgsd6.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108),ac-p7gfhzr-shard-00-00.1vhgsd6.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108),ac-p7gfhzr-shard-00-02.1vhgsd6.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108), Timeout: 30s, Topology Description: <TopologyDescription id: 646461627ca5204557968f7c, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-p7gfhzr-shard-00-00.1vhgsd6.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-p7gfhzr-shard-00-00.1vhgsd6.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>, <ServerDescription ('ac-p7gfhzr-shard-00-01.1vhgsd6.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-p7gfhzr-shard-00-01.1vhgsd6.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>, <ServerDescription ('ac-p7gfhzr-shard-00-02.1vhgsd6.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-p7gfhzr-shard-00-02.1vhgsd6.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>]>
스택오버플로우에서 해결했다.
이 문제를 해결하는 방법을 여전히 궁금해하는 사람을 위해 " Install Certificates.command" 을(를) 설치하여 문제 해결
Certificates.commad 위치 설치
해당 파일을 두 번 클릭하기만 하면 설치될 때까지 기다리면 준비 완료