我试图从我的MongoDB核心3.1应用程序连接到ASP.NET地图集:
var client = new MongoClient("mongodb+srv://<user>:<password>@<my_db_instance>/test?retryWrites=true&w=majority");
var database = client.GetDatabase("test");
我得到了以下错误:
ExtendedSocketException: No connection could be made beca
我得到了这个错误:
unhandledRejection: TypeError [ERR_INVALID_OPT_VALUE]: The value "blue-test.cle1x.us-west-1.rds.amazonaws.com" is invalid for option "hostname"
at Object.lookupService (dns.js:173:11)
at /app/main.js:32:7
at new Promise (<anonymous>)
at getDNSInfo (/ap