강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

이룸님의 프로필 이미지
이룸

작성한 질문수

mongoDB 기초부터 실무까지(feat. Node.js)

axios 이용해서 client 코드 만들기

Promise error가 계속 발생되는데 구글링해도 답을 모르겠어요...

작성

·

565

0

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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

(node:5538) [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.

따라 작성을 했는데. 이런 에러가 뜨네요..

구글링을 해도 답이 안나와서요 ㅜ

try catch를 작성해야하는걸까요...?

혹시 이번 강의 코드는 저장된 곳 없으신가요?

답변 2

1

이룸님의 프로필 이미지
이룸
질문자

잘 해결되었습니다! 답변 감사합니다!

1

많이 난감하셨겠네요!

https://github.com/hoffnung8493/mongodb_tutorial

소스코드가 담긴 github repository에요. 코드가 최종본이라 조금 다를 수 있어요.

만약 해결이 안되시면 github public repository에 소스코드 올려서 공유해주세요! 그러면 제가 확인해보고 알려드리겠습니다 :)

이룸님의 프로필 이미지
이룸

작성한 질문수

질문하기