0

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'
}]

Image problem in termminal

I hope can connect that

cloned
  • 6,346
  • 4
  • 26
  • 38
  • That error message shows [ECONNRESET](https://stackoverflow.com/questions/17245881/how-do-i-debug-error-econnreset-in-node-js) connecting to ac-n86oyxt-shard-00-01.hzipqs0.mongodb.net. Have you whitelisted your IP in Atlas? – Joe Jan 24 '23 at 16:37

0 Answers0