커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
맥북 서버 DB 타임아웃
undefined주차
북마크
이*현
댓글
11
추천
0
조회수
14
조회수
14
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



DB와 서버연결 타임아웃이 뜨네요





Traceback (most recent call last):

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/flask/app.py", line 2551, in __call__

  return self.wsgi_app(environ, start_response)

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/flask/app.py", line 2531, in wsgi_app

  response = self.handle_exception(e)

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/flask/app.py", line 2528, in wsgi_app

  response = self.full_dispatch_request()

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/flask/app.py", line 1825, in full_dispatch_request

  rv = self.handle_user_exception(e)

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/flask/app.py", line 1823, in full_dispatch_request

  rv = self.dispatch_request()

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/flask/app.py", line 1799, in dispatch_request

  return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/app.py", line 23, in mars_post

  db.mars.insert_one(doc)

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/pymongo/collection.py", line 628, in insert_one

  self._insert_one(

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/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/ijonghyeon/Desktop/무제 폴더/projects/02.mars/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/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1757, in _tmp_session

  s = self._ensure_session(session)

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/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/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1685, in __start_session

  self._topology._check_implicit_session_support()

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/pymongo/topology.py", line 538, in _check_implicit_session_support

  self._check_session_support()

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/pymongo/topology.py", line 554, in _check_session_support

  self._select_servers_loop(

 File "/Users/ijonghyeon/Desktop/무제 폴더/projects/02.mars/venv/lib/python3.8/site-packages/pymongo/topology.py", line 238, in _select_servers_loop

  raise ServerSelectionTimeoutError(

pymongo.errors.ServerSelectionTimeoutError: ac-iufy5fn-shard-00-01.idglzho.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108),ac-iufy5fn-shard-00-00.idglzho.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108),ac-iufy5fn-shard-00-02.idglzho.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: 64147eeb125c92d9b73db707, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-iufy5fn-shard-00-00.idglzho.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-iufy5fn-shard-00-00.idglzho.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>, <ServerDescription ('ac-iufy5fn-shard-00-01.idglzho.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-iufy5fn-shard-00-01.idglzho.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>, <ServerDescription ('ac-iufy5fn-shard-00-02.idglzho.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-iufy5fn-shard-00-02.idglzho.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')>]>




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