• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    해결됨

이 에러 때문에 진행이 안되네요 ㅠ

23.10.03 21:07 작성 조회수 341

1

MongoDB connection error: { Error: querySrv ENOTFOUND mongodb.tcp.cluster0-ypgh5.mongodb.net

at QueryReqWrap.onresolve [as oncomplete] (dns.js:196:19)

errno: 'ENOTFOUND',

code: 'ENOTFOUND',

syscall: 'querySrv',

hostname: '_mongodb._tcp.cluster0-ypgh5.mongodb.net' }

(node:21088) UnhandledPromiseRejectionWarning: Error: querySrv ENOTFOUND mongodb.tcp.cluster0-ypgh5.mongodb.net

at QueryReqWrap.onresolve [as oncomplete] (dns.js:196:19)

(node:21088) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:21088) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

답변 1

답변을 작성해보세요.

0

안녕하세요, 몽고DB 커넥션 에러인거 같은데요. 사용하시는 DB 접속 정보를 다시 한번 확인해 보시겠어요? :)

dkstodl님의 프로필

dkstodl

질문자

2023.10.06

강사님의 소스를 그대로 가져와서 실행시키는건데 어느부분을 확인하면 되는걸까요?

아 DB 접속 정보는 강의에서 안내한 것처럼 dkstodl님의 인스턴스 정보를 연결하셔야 해요. 제 DB 정보를 그대로 복붙하시면 안됩니다 ㅋㅋ