
db 연결 과정에서 url 내용에 myfrisdatabase라는 것은 뜨지 않아 Clust0를 추가하였으나 데이터베이스에 데이터 저장오류가 발생합니다.


작성한 코드 및 에러 메세지
/Users/kimjiho/Desktop/sparta/pythonprac/venv/bin/python /Users/kimjiho/Desktop/sparta/pythonprac/venv/dbprac.py
Traceback (most recent call last):
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/dbprac.py", line 10, in <module>
db.users.insert_one(doc)
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/collection.py", line 628, in insert_one
self._insert_one(
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/collection.py", line 569, in _insert_one
self.__database.client._retryable_write(acknowledged, _insert_command, session)
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1475, in _retryable_write
with self._tmp_session(session) as s:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1757, in _tmp_session
s = self._ensure_session(session)
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1740, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1685, in __start_session
self._topology._check_implicit_session_support()
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/topology.py", line 538, in _check_implicit_session_support
self._check_session_support()
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/topology.py", line 554, in _check_session_support
self._select_servers_loop(
File "/Users/kimjiho/Desktop/sparta/pythonprac/venv/lib/python3.8/site-packages/pymongo/topology.py", line 238, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: ac-dnw4fyp-shard-00-01.qli9s79.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108),ac-dnw4fyp-shard-00-00.qli9s79.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108),ac-dnw4fyp-shard-00-02.qli9s79.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: 63aaad707229108b982ad042, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-dnw4fyp-shard-00-00.qli9s79.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-dnw4fyp-shard-00-00.qli9s79.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>, <ServerDescription ('ac-dnw4fyp-shard-00-01.qli9s79.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-dnw4fyp-shard-00-01.qli9s79.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>, <ServerDescription ('ac-dnw4fyp-shard-00-02.qli9s79.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-dnw4fyp-shard-00-02.qli9s79.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>]>
종료 코드 1(으)로 완료된 프로세스
