unhandledRejection: MongoServerError: bad auth : Authentication failed.
at Connection.onMessage (/home/codexpath/Desktop/code_demo/restaurant_app/node_modules/mongodb/lib/cmap/connection.js:207:30)
at MessageStream.<anonymous> (/home/codexpath/Desktop/code_demo/restaurant_app/node_modules/mongodb/lib/cmap/connection.js:60:60)
at MessageStream.emit (node:events:527:28)
at processIncomingData (/home/codexpath/Desktop/code_demo/restaurant_app/node_modules/mongodb/lib/cmap/message_stream.js:132:20)
at MessageStream._write (/home/codexpath/Desktop/code_demo/restaurant_app/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:389:12)
at
at TLSSocket.emit (node:events:527:28) {
ok: 0,
code: 8000,
codeName: 'AtlasError',
[Symbol(errorLabels)]: Set(1) { 'HandshakeError' }
}