Open mgoldp opened 1 year ago
Is the password correct? Because this error comes when wrong password is sent to mongodb. And also check if you are getting password from env or not.
On Wed, Jan 4, 2023, 3:56 AM Matías Gold @.***> wrote:
Hi, I purchased the [NodeJS Express MongoDB Course With Real World Projects 2022] course from Udemy, an when I download and open the project according to the video, I get the follow error message:
`> @.*** dev
nodemon --exec babel-node app.js
[nodemon] 2.0.19 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting babel-node app.js MongoServerError: bad auth : authentication failed at Connection.onMessage (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\connection.ts:438:20) at MessageStream. (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\connection.ts:256:56) at MessageStream.emit (node:events:527:28) at MessageStream.emit (node:domain:475:12) at processIncomingData (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\message_stream.ts:193:14) at MessageStream._write (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\message_stream.ts:70:5) at writeOrBuffer (node:internal/streams/writable:389:12) at _write (node:internal/streams/writable:330:10) at MessageStream.Writable.write (node:internal/streams/writable:334:10) at TLSSocket.ondata (node:internal/streams/readable:754:22) { ok: 0, code: 8000, codeName: 'AtlasError', [Symbol(errorLabels)]: Set(1) { 'HandshakeError' } } [nodemon] clean exit - waiting for changes before restart`
And also, the project it's completed, no like in the video.
Please can you hel me with this?
— Reply to this email directly, view it on GitHub https://github.com/Nikhilthadani/MERN-Travel-Diaries/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/APDHCRALGXUHJDQ2F5YLMULWQSRQFANCNFSM6AAAAAATQEWNDY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks for your answer, but the thing it's that I downloaded the project and it comes with your configuration, and in the video it's a boilerplate, so i can't start since it's also completed. Considering it's a paid couse the repository should have what it is on the video, also, I'm just starting to learn node and express.
Hi, I purchased the [NodeJS Express MongoDB Course With Real World Projects 2022] course from Udemy, an when I download and open the project according to the video, I get the follow error message:
`> backend@1.0.0 dev
[nodemon] 2.0.19 [nodemon] to restart at any time, enter (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\connection.ts:256:56)
rs
[nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,json [nodemon] startingbabel-node app.js
MongoServerError: bad auth : authentication failed at Connection.onMessage (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\connection.ts:438:20) at MessageStream.at MessageStream.emit (node:events:527:28) at MessageStream.emit (node:domain:475:12) at processIncomingData (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\message_stream.ts:193:14)
at MessageStream._write (C:\Users\mgold\Desktop\Node JS\travel diares\MERN-Travel-Diaries-backend\travelDiaries\node_modules\mongodb\src\cmap\message_stream.ts:70:5) at writeOrBuffer (node:internal/streams/writable:389:12) at _write (node:internal/streams/writable:330:10) at MessageStream.Writable.write (node:internal/streams/writable:334:10) at TLSSocket.ondata (node:internal/streams/readable:754:22) { ok: 0, code: 8000, codeName: 'AtlasError', [Symbol(errorLabels)]: Set(1) { 'HandshakeError' } } [nodemon] clean exit - waiting for changes before restart`
And also, the project it's completed, no like in the video.
Please can you hel me with this?