Unable to connect: queryTxt ETIMEOUT
clustertiendaap.7zy2ydf.mongodb.net
From vs code extension
- I have already change my DNS to 8888 and 8844 and 8800
Unable to connect: queryTxt ETIMEOUT
clustertiendaap.7zy2ydf.mongodb.net
From vs code extension
The issue is on your side. I got
;QUESTION
clustertiendaap.7zy2ydf.mongodb.net. IN ANY
;ANSWER
clustertiendaap.7zy2ydf.mongodb.net. 60 IN TXT "authSource=admin&replicaSet=atlas-hmp2v1-shard-0"
clustertiendaap.7zy2ydf.mongodb.net. 60 IN SRV 0 0 27017 ac-iiwh38a-shard-00-00.7zy2ydf.mongodb.net.
clustertiendaap.7zy2ydf.mongodb.net. 60 IN SRV 0 0 27017 ac-iiwh38a-shard-00-01.7zy2ydf.mongodb.net.
clustertiendaap.7zy2ydf.mongodb.net. 60 IN SRV 0 0 27017 ac-iiwh38a-shard-00-02.7zy2ydf.mongodb.net.
May be VSCode need special extension for SRV records. What is the exact connection string you are using? As you see above clusters do not have A records.
Do you mean 8.8.8.8 and 8.8.4.4 rather than
Sure, I mean 8.8.8.8 and 8.8.4.4
I am trying to connect for the first time mongo to visual studio code.
right now MongoDB for VS Code v0.9.
I had the same error connecting MongoDB compass
It looks like you have terminated your cluster. I now get:
;QUESTION
clustertiendaap.7zy2ydf.mongodb.net. IN ANY
;ANSWER
;AUTHORITY
mongodb.net. 900 IN SOA ns-761.awsdns-31.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 60
;ADDITIONAL
I solved the error my internet service provider has blocked port 27107 by wifi that’s the reason why it couldn’t reach the external server.
Hi,
I am having the same issue. My mongoose.connect
isn’t working. I am quite new to MongoDB so I am afraid I don’t know how to change my DNS.
I am using port 5000.
app.listen(port, (req, res) => {
console.log(port);
})
mongoose.connect('mongodb+srv://<username>:<password>@cluster0.g1tk0kd.mongodb.net/?retryWrites=true&w=majority', {
useNewUrlParser: true,
useUnifiedTopology: true
}).then(()=>{
console.log('You are connected to mongoDB');
}).catch((error)=>{
console.log("mongoDb failed: ", error.message);
})
I’d appreciate any help, I have tried a different port. I also added another IP / another user. and the issue persists.
Kind regards,
Hey @Pedro_Lima1,
Welcome to the MongoDB Community
Kindly refer to this thread and please avoid multiple posts.
Regards,
Kushagra