728x90
Example app listening at http://localhost:3000
MongooseError [MongooseServerSelectionError]: bad auth Authentication failed.
at new MongooseServerSelectionError (C:\workspace\react\boiler-plate\node_modules\mongoose\lib\error\serverSelection.js:22:11)
at NativeConnection.Connection.openUri (C:\workspace\react\boiler-plate\node_modules\mongoose\lib\connection.js:823:32)
at Mongoose.connect (C:\workspace\react\boiler-plate\node_modules\mongoose\lib\index.js:333:15)
at Object.<anonymous> (C:\workspace\react\boiler-plate\index.js:7:10)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
setName: null,
maxSetVersion: null,
maxElectionId: null,
servers: Map {
'boilerplate-shard-00-00-wxsix.mongodb.net:27017' => [ServerDescription],
'boilerplate-shard-00-01-wxsix.mongodb.net:27017' => [ServerDescription],
'boilerplate-shard-00-02-wxsix.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
compatibilityError: null,
logicalSessionTimeoutMinutes: null,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
commonWireVersion: null
},
[Symbol(mongoErrorContextSymbol)]: {}
}
너무 어이없는 에러....
에서 <>부분도 제거해야함
만약 그래도 해결 안되면
- database access 비밀번호 확인.
- 네트워크 id 접근 권한 확인
- 화면 왼쪽 "Security" 하위 "Network Access" 클릭
- 화면 오른쪽 "ADD IP Address" 를 클릭
1) ADD CURRENT IP ADDRESS : 현재 사용중인 인터넷 IP 를 사용하 -> 인터넷 환경이 바뀔때 마다 등록, 더 안전
2) ALLOW ACCESS FROM ANYWHERE : 모든 인터넷 IP(0.0.0.0) 를 사용 -> 안전하지 않음.
(백업 : 2020. 6. 15. 21:20)
300x250
'ETC' 카테고리의 다른 글
[IntelliJ] 인텔리제이 콘솔 한글 깨짐 (0) | 2023.05.18 |
---|---|
[Error] 젠킨스Jenkins 로그 깨질 때 (0) | 2023.03.20 |
[Error] Lock wait timeout exceeded; try restarting transaction (0) | 2023.02.03 |
[git] 이미 remote repositoy에 push한 commit 합쳐서 다시 push하기 (0) | 2023.02.02 |
[Error] prettier 설정 중 Replace `↹↹` with `····`eslintprettier/prettier (0) | 2021.02.01 |
[Eclips] 이클립스 - @SuppressWarnings("rawtypes") (0) | 2021.01.27 |
[Eclipse] 이클립스 - UTF-8 설정 (0) | 2021.01.27 |
[Eclipse] 이클립스 - 톰캣 서버 셋팅 (0) | 2021.01.27 |