codestates / codestates/Lollin-server

[error handling] 새로고침시 mongoDB warning 경고

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**어떤 에러인가요?**
* 새로고침으로 findAll함수를 실행시 warning 경고가 뜬다

**에러 메세지**
`(node:6007) [MONGODB DRIVER] Warning: the options [servers] is not supported
(Use node --trace-warnings .. to show where the warning was created)
(node:6007) [MONGODB DRIVER] Warning: the options [caseTranslate] is not supported
(node:6007) [MONGODB DRIVER] Warning: the options [dbName] is not supported
(node:6007) [MONGODB DRIVER] Warning: the options [srvHost] is not supported
(node:6007) [MONGODB DRIVER] Warning: the options [credentials] is not supported.`

**에러 핸들링 방법**
* 데이터베이스를 연결객체를 생성할때 싱글톤 패턴이 아닌 함수실행시 생성, 종료시 닫음 으로 해결

**에러 핸들링을 위해 참고한 레퍼런스 링크**

**기타 다른 문제**
*

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.