Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.2K
Views
Error de mongoDB: no se pudo conectar a ningún servidor en su MongoDB Atlas Cluster
const mongoose = require('mongoose'); mongoose.connect('mongodb://DATABASE_LOGIN1:[MyPass]@mee6copycluster-shard-00-00.r86qy.mongodb.net:27017/djsdashboard/?authSource=admin', { useNewUrlParser: true, useUnifiedTopology: true, });

Error: UnhandledPromiseRejectionWarning: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist

y no se como solucionarlo por favor ayuda

¡Si quieres más información solo pídela específicamente!

mongodb+srv://DATABASE_LOGIN1:[MyPass]@mee6copycluster-shard-00-00.r86qy.mongodb.net/admin?retryWrites=true&w=la mayoría da el error:

 (node:7288) UnhandledPromiseRejectionWarning: Error: querySrv ENOTFOUND _mongodb._tcp.mee6copycluster-shard-00-00.r86qy.mongodb.net at QueryReqWrap.onresolve [as oncomplete] (dns.js:202:19) (node:7288) 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:7288) [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.
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Tuve el mismo problema y lo resolví simplemente seleccionando el botón "Permitir acceso desde cualquier lugar" en la sección "Acceso a la red" en mi panel de MongoDB.

Puede deberse a conexiones a través de VPN o Proxies.

Ahora puede conectarse al servidor correspondiente y al puerto que haya especificado.

over 4 years ago · Santiago Trujillo Report

0

Arreglado :

 mongoose.connect('mongodb://DATABASE_LOGIN1:[MyPass]@mee6copycluster-shard-00-00.r86qy.mongodb.net:27017,mee6copycluster-shard-00-01.r86qy.mongodb.net:27017,mee6copycluster-shard-00-02.r86qy.mongodb.net:27017/djsdashboard?ssl=true&replicaSet=atlas-5r6qbu-shard-0&authSource=admin&retryWrites=true&w=majority', { useNewUrlParser: true, useUnifiedTopology: true, });

Eso lo arregló para mí

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!