Promise error가 계속 발생되는데 구글링해도 답을 모르겠어요...
589
작성한 질문수 33
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
많이 난감하셨겠네요!
https://github.com/hoffnung8493/mongodb_tutorial
소스코드가 담긴 github repository에요. 코드가 최종본이라 조금 다를 수 있어요.
만약 해결이 안되시면 github public repository에 소스코드 올려서 공유해주세요! 그러면 제가 확인해보고 알려드리겠습니다 :)
option usecreateindex is not supported 오류 나면은
0
163
1
Schemaless 특성을 재생시 검은화면이 나와요
0
258
1
user 내장 시 ref 필드 필요성
0
258
1
await 관련해서 질문드릴게 있습니다!!
0
306
2
섹션6의 3번째 강의 faker파일이 어디있나요?
0
321
1
$elemMatch 질문이 있습니다.
0
252
1
DB 업데이트에 실패했을 상황에서 대처는 어떻게 할 수 있나요.
2
778
2
블로그에 user 데이터를 추가하는 방법에 대해서
0
244
1
blog 데이터 생성시 user 관련 오류
0
364
1
age 예외 처리를 별도로 하신 이유가 궁금합니다.
2
315
2
delete 메소드가 많은 이유가 궁금합니다.
0
186
1
unique validation 처리
0
304
1
updateMany에서 user._id를 못찾는 상황
1
408
1
find() 가 리턴하는 instance member
1
441
3
몽고 db를 백업방법을 부탁합니다.
0
611
1
인덱스 생성시점
0
723
1
$pull 문법에 대한 질문
0
369
1
comment의 id가 생성되는 시점
1
311
1
리팩토링 강의에서 라우터 리팩토링 전개연산자(...)
1
322
1
session.abortTransaction()에 대한 실제 예시 문의
0
298
1
섹션9 Computed Fields 강의에서, 다음 강의 가기 전 빠진부분
-1
415
1
faker 패키지 취약성 이슈
1
500
1
라우터 리팩토링
0
349
1
섹션4 진행중, mongoose 질문
0
317
1





