커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
mongdb 연결 에러
undefined주차
북마크
송*석
댓글
3
추천
0
조회수
13
조회수
13
답변 완료

mongdb 연결하는데 에러가 뜨네요


에러 메시지는

아래와 같습니다.


Traceback (most recent call last):

 File "C:\Users\happy\AppData\Local\Programs\Python\Python38\lib\code.py", line 90, in runcode

  exec(code, self.locals)

 File "<input>", line 1, in <module>

 File "C:\Program Files\JetBrains\PyCharm 2021.3.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile

  pydev_imports.execfile(filename, global_vars, local_vars) # execute the script

 File "C:\Program Files\JetBrains\PyCharm 2021.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile

  exec(compile(contents+"\n", file, 'exec'), glob, loc)

 File "C:/Users/happy/Desktop/스파르타/파이썬-prac/dbprac.py", line 10, in <module>

  db.users.insert_one(doc)

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\collection.py", line 628, in insert_one

  self._insert_one(

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\collection.py", line 569, in _insert_one

  self.__database.client._retryable_write(acknowledged, _insert_command, session)

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\mongo_client.py", line 1475, in _retryable_write

  with self._tmp_session(session) as s:

 File "C:\Users\happy\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 113, in __enter__

  return next(self.gen)

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\mongo_client.py", line 1757, in _tmp_session

  s = self._ensure_session(session)

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\mongo_client.py", line 1740, in _ensure_session

  return self.__start_session(True, causal_consistency=False)

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\mongo_client.py", line 1685, in __start_session

  self._topology._check_implicit_session_support()

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\topology.py", line 538, in _check_implicit_session_support

  self._check_session_support()

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\topology.py", line 554, in _check_session_support

  self._select_servers_loop(

 File "C:\Users\happy\Desktop\스파르타\파이썬-prac\venv\lib\site-packages\pymongo\topology.py", line 238, in _select_servers_loop

  raise ServerSelectionTimeoutError(

pymongo.errors.ServerSelectionTimeoutError: ac-ql5otop-shard-00-02.uitc6ca.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1124),ac-ql5otop-shard-00-00.uitc6ca.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1124),ac-ql5otop-shard-00-01.uitc6ca.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1124), Timeout: 30s, Topology Description: <TopologyDescription id: 64037b3773f57d9bc8b4f0cf, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-ql5otop-shard-00-00.uitc6ca.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-ql5otop-shard-00-00.uitc6ca.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1124)')>, <ServerDescription ('ac-ql5otop-shard-00-01.uitc6ca.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-ql5otop-shard-00-01.uitc6ca.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1124)')>, <ServerDescription ('ac-ql5otop-shard-00-02.uitc6ca.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-ql5otop-shard-00-02.uitc6ca.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1124)')>]>




스파르타 즉문즉답

.

스파르타 즉문즉답








취소
 공유
취소
댓글 0
댓글 알림
나의얼굴