Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12425

[Atlas] Perl connectivity example for mongodb+srv format is incorrect

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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");
      

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            steve.renaker@mongodb.com Steve Renaker (Inactive)
            Reporter:
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 11 weeks, 6 days ago