-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Atlas
-
Labels:None
Description
The driver connectivity example for Perl here is the following:
my $client = MongoDB->connect("mongodb+srv://kay:myRealPassword@cluster0.mongodb.net/?ssl=true&authSource=admin&serverSelectionTryOnce=false&serverSelectionTimeoutMS=15000"");
In fact:
- there is an extra " character at the end of the URI
- the Per driver crashes with parsing error if "ssl=true" is set in the URI (likely to be addressed in PERL-1021, but not 100% sure)
- the URI options can be derived from the corresponding SRV record and are not required for successful connection
The following example should be sufficient:
my $client = MongoDB->connect("mongodb+srv://kay:myRealPassword@cluster0.mongodb.net");