작성자 없음
작성자 정보가 삭제된 글입니다.
해결된 질문
작성
·
181
0
npm run dev 했을때
정상적으로 웹이 켜지긴하는데
sign in, sign up이 보이지않고 로그아웃만 보입니다
터미널에선 이런 오류가 나옵니다
그리고 혹시 dev.js 에서
<username> <password>
부분 유저네임 sj 패스워드 root면
<sj><root> 이런식으로 기입하는게 맞나요?
MongooseError [MongooseServerSelectionError]: Authentication failed.
[0] at new MongooseServerSelectionError (C:\Users\hsj11\Desktop\st\node_modules\mongoose\lib\error\serverSelection.js:22:11)
[0] at NativeConnection.Connection.openUri (C:\Users\hsj11\Desktop\st\node_modules\mongoose\lib\connection.js:823:32)
[0] at Mongoose.connect (C:\Users\hsj11\Desktop\st\node_modules\mongoose\lib\index.js:333:15)[0] at Object.<anonymous> (C:\Users\hsj11\Desktop\st\server\index.js:18:26)
[0] at Module._compile (internal/modules/cjs/loader.js:1137:30)
[0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
[0] at Module.load (internal/modules/cjs/loader.js:985:32)
[0] at Function.Module._load (internal/modules/cjs/loader.js:878:14)
[0] at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
[0] at internal/main/run_main_module.js:17:47 {
[0] reason: TopologyDescription {
[0] type: 'ReplicaSetNoPrimary',
[0] setName: null,
[0] maxSetVersion: null,
[0] maxElectionId: null,
[0] servers: Map {
[0] 'sangjun-shard-00-00.rckbj.mongodb.net:27017' => [ServerDescription],
[0] 'sangjun-shard-00-01.rckbj.mongodb.net:27017' => [ServerDescription],
[0] 'sangjun-shard-00-02.rckbj.mongodb.net:27017' => [ServerDescription]
[0] },
[0] stale: false,
[0] compatible: true,
[0] compatibilityError: null,
[0] logicalSessionTimeoutMinutes: null,
[0] heartbeatFrequencyMS: 10000,
[0] localThresholdMS: 15,
[0] commonWireVersion: null
[0] },
[0] [Symbol(mongoErrorContextSymbol)]: {}
[0] }