Error connecting to MongoDB Atlas
Hello, I'm trying to connect to MongoDB Atlas via
mongoose
(npm:mongoose
) but encountered the following error:
My code: 8 Replies
I've added
0.0.0.0/0
to my network accessSolved it
hey @cxx , what is the error did you ever face the error connection timed out when trying to connect with the mongodb
hey sorry i forgot to post the the way i solved this and honestly i forgot how i did it
but if im correct, it have to do with deno resolving dns and adding a
.
to the string
so in order to fix the error rewrite a mongodb dns resolver and check if the resolved dns have a .
and remove if it does
to be honest im shocked that someone is still facing the same problem with me after several months
if you have any more problems, id be happy to helpI haven't faced the same issue but it is similar to this issue, when I try to connect with the mongodb then it always shows the error: connection timed out.. but it is working correctly in node.
Yeah!! once I will try this
and thank you for responding
@0x_!nit I have same "error: connection timed out.. but it is working correctly in node.", were you able to solve it?
then again later I switched to node I couldn't find any proper solution to it
Ohh no :partydeno: 😄
Thanks @0x!nit