(node:17412) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:17412) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [cluster0-shard-00-00-vlnbi.gcp.mongodb.net:27017] on first connect [MongoNetworkError: connection 5 to cluster0-shard-00-00-vlnbi.gcp.mongodb.net:27017 closed
at TLSSocket.<anonymous> (D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\connection.js:372:9)
at Object.onceWrapper (events.js:313:26)
at TLSSocket.emit (events.js:223:5)
at net.js:664:12
at TCP.done (_tls_wrap.js:481:7) {
name: 'MongoNetworkError'
}]
at Pool.<anonymous> (D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\topologies\server.js:438:11)
at Pool.emit (events.js:223:5)
at D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\pool.js:562:14
at D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\pool.js:1009:9
at callback (D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\connect.js:97:5)
at D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\connect.js:124:7
at _callback (D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\connect.js:349:5)
at Connection.errorHandler (D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\connect.js:365:5)
at Object.onceWrapper (events.js:313:26)
at Connection.emit (events.js:223:5)
at TLSSocket.<anonymous> (D:\learn\react\mernstack\mern_app\backend\node_modules\mongodb\lib\core\connection\connection.js:370:12)
at Object.onceWrapper (events.js:313:26)
at TLSSocket.emit (events.js:223:5)
at net.js:664:12
at TCP.done (_tls_wrap.js:481:7)
(node:17412) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:17412) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.