• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

2.9K
Views
Error: consultaSrv ENOTFOUND _mongodb._tcp.cluster0.kspub.mongodb.net

mi aplicación web no puede conectarse a mongo dB atlas y me muestra el siguiente error

 Failed to connect to the database :Error: querySrv ENOTFOUND _mongodb._tcp.cluster0.kspub.mongodb.net 2022-01-18T16:58:59.817138+00:00 app[web.1]: (node:34) UnhandledPromiseRejectionWarning: Error: querySrv ENOTFOUND _mongodb._tcp.cluster0.kspub.mongodb.net 2022-01-18T16:58:59.817138+00:00 app[web.1]: at QueryReqWrap.onresolve [as oncomplete] (dns.js:210:19) 2022-01-18T16:58:59.817139+00:00 app[web.1]: (Use `node --trace-warnings ...` to show where the warning was created)

mensaje de error

aunque funciona localmente y se conecta a la base de datos, aquí está mi códigohttps://github.com/yara121/mern-app/blob/main/server/src/app.js

over 3 years ago · Santiago Trujillo
1 answers
Answer question

0

Visite su tablero de mongodb atlas >> Vaya a su acceso a la red >> Edite su dirección IP actual en la lista blanca >> haga clic en "Permitir acceso desde cualquier lugar"

Esto hizo el truco para mí, gracias

over 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error