I can't connect Mongodb Atlas and Vonage APIs for my project
module.exports = {
email: "EMAIL",
password: "PASSWORD",
NEXMO_API_KEY: "API_KEY",
NEXMO_API_SECRET: "SECRET_KEY",
NEXMO_FROM_NUMBER: "NUMBER",
MongoURI: `ENTER_MONGOURI`
}
The bug
App is running on port 3001
(node:20388) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option {
useNewUrlParser: true } to MongoClient.connect.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:20388) 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.
MongoNetworkError: failed to connect to server [ac-n86oyxt-shard-00-01.hzipqs0.mongodb.net:27017] on first connect [Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
name: 'MongoNetworkError'
}]
I hope can connect that