-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.8
-
Component/s: Config
-
None
-
Environment:Windows 10, PyCharm
When I set up my MongoDB Atlas database and try to upload data to it, I get the following error:
in _resolve_uri
raise ConfigurationError(str(exc))
pymongo.errors.ConfigurationError: The DNS response does not contain an answer to the question: _mongodb._tcp.thecluster-noqgm.gcp.mongodb.net. IN SRV
In turn, if I try to enter the MongoShell, I get the following error:
2020-03-06T16:27:23.304+0100 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: No connection could be made because the target machine actively refused it. :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2020-03-06T16:27:23.346+0100 F - [main] exception: connect failed
2020-03-06T16:27:23.346+0100 E - [main] exiting with code 1
It could be something with my home network, since I tried to upload data from a different network and it worked without issue.