I can't acces to my database form a specific device

I can’t connect in mongodb atlas and my Nodejs project.
Whenever I try to connect with other device, I can.
The error message is:

Error: querySrv ETIMEOUT _mongodb._tcp.jopaka.uhuhh.mongodb.net
at QueryReqWrap.onresolve [as oncomplete] (dns.js:210:19) {
errno: undefined,
code: ‘ETIMEOUT’,
syscall: ‘querySrv’,
hostname: ‘_mongodb._tcp.jopaka.uhuhh.mongodb.net’
}

This cluster DNS looks okay.

id 51315
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
_mongodb._tcp.jopaka.uhuhh.mongodb.net. IN ANY
;ANSWER
_mongodb._tcp.jopaka.uhuhh.mongodb.net. 60 IN SRV 0 0 27017 jopaka-shard-00-00.uhuhh.mongodb.net.
_mongodb._tcp.jopaka.uhuhh.mongodb.net. 60 IN SRV 0 0 27017 jopaka-shard-00-01.uhuhh.mongodb.net.
_mongodb._tcp.jopaka.uhuhh.mongodb.net. 60 IN SRV 0 0 27017 jopaka-shard-00-02.uhuhh.mongodb.net.

So, it might have been a temporary issue. If it is still not working, then it might be your DNS provider having a hard time handling new SRV records. Try using 8.8.8.8 Google’s DNS server.

2 Likes

Hi @Samuel_Reveles_Pedraza and welcome in the MongoBD Community :muscle: !

Did you authorize the client IP address in the Network Access tab correctly? The correct IP address needs to be in the IP access list.
Also please double check the database username and password.

Cheers,
Maxime.

2 Likes

It works.
Thank you!

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.