Closed RNR1 closed 3 years ago
It seems that there is a problem with your server address, you can directly use uri to connect
Thanks for your comment! I tried using the URI as well, I was not familiar about passing the authMechanism in the query params, but still, I get the following error:
MongoError: "Connection failed: MongoError: \"Auth mechanism not implemented in Deno driver: SCRAM_SHA_1\""
If I omit this param, I get the following message
MongoError: "Connection failed: MongoError: {\"ok\":0,\"errmsg\":\"auth mechanism SCRAM-SHA-256 is not supported\",\"code\":8000,\"codeName\":\"AtlasError\"}"
Should be SCRAM-SHA-1
, not SCRAM_SHA_1
Thanks! it worked. I will close this issue, but I would recommend referencing this param on the examples because right now, the connect string option hints that it's more compatible with local instances and connecting to an Atlas cluster is a common use case.
I am getting an error when trying to login to a MongoDB Atlas DB:
specifications:
My code:
To clarify, this is the URL I got from the atlas cluster connect:
I really appreciate any help you can provide.