Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how can i fix this? [ nodemon ] starting ` node server.js ` ( node: 2 5 3 4 0 ) [ MONGOOSE ] DeprecationWarning:

how can i fix this? [nodemon] starting `node server.js`
(node:25340)[MONGOOSE] DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7. Use `mongoose.set('strictQuery', false);` if you want to prepare for this change. Or use `mongoose.set('strictQuery', true);` to suppress this warning.
(Use `node --trace-deprecation ...` to show where the warning was created)
MongoServerError: bad auth : authentication failed
at Connection.onMessage (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\connection.js:231:30)
at MessageStream. (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\connection.js:61:60)
at MessageStream.emit (node:events:518:28)
at processIncomingData (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\message_stream.js:125:16)
at MessageStream._write (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:564:12)
at _write (node:internal/streams/writable:493:10)
at Writable.write (node:internal/streams/writable:502:10)
at TLSSocket.ondata (node:internal/streams/readable:1007:22)
at TLSSocket.emit (node:events:518:28){
ok: 0,
code: 8000,
codeName: 'AtlasError',
connectionGeneration: 0,
[Symbol(errorLabels)]: Set(2){ 'HandshakeError', 'ResetPool' }
}
[nodemon] clean exit - waiting for changes before restart

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions