inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

axios 이용해서 client 코드 만들기

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

580

이룸

작성한 질문수 33

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를 작성해야하는걸까요...?

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

javascript aws DBMS/RDBMS rest-api nodejs mongodb 데이터 엔지니어링

답변 2

1

이룸

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

1

김시훈 (도도소프트)

많이 난감하셨겠네요!

https://github.com/hoffnung8493/mongodb_tutorial

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

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

option usecreateindex is not supported 오류 나면은

0

146

1

Schemaless 특성을 재생시 검은화면이 나와요

0

240

1

user 내장 시 ref 필드 필요성

0

239

1

await 관련해서 질문드릴게 있습니다!!

0

292

2

섹션6의 3번째 강의 faker파일이 어디있나요?

0

308

1

$elemMatch 질문이 있습니다.

0

246

1

DB 업데이트에 실패했을 상황에서 대처는 어떻게 할 수 있나요.

2

766

2

블로그에 user 데이터를 추가하는 방법에 대해서

0

237

1

blog 데이터 생성시 user 관련 오류

0

351

1

age 예외 처리를 별도로 하신 이유가 궁금합니다.

2

301

2

delete 메소드가 많은 이유가 궁금합니다.

0

181

1

unique validation 처리

0

296

1

updateMany에서 user._id를 못찾는 상황

1

396

1

find() 가 리턴하는 instance member

1

431

3

몽고 db를 백업방법을 부탁합니다.

0

603

1

인덱스 생성시점

0

712

1

$pull 문법에 대한 질문

0

359

1

comment의 id가 생성되는 시점

1

302

1

리팩토링 강의에서 라우터 리팩토링 전개연산자(...)

1

315

1

session.abortTransaction()에 대한 실제 예시 문의

0

287

1

섹션9 Computed Fields 강의에서, 다음 강의 가기 전 빠진부분

-1

408

1

faker 패키지 취약성 이슈

1

486

1

라우터 리팩토링

0

343

1

섹션4 진행중, mongoose 질문

0

310

1