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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Atlas
    • Labels:
      None
    • # Replies:
      2
    • Last comment by Customer:
      true
    • Sprint:
      KANBAN BUCKET

      Description

      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.)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 8 weeks, 3 days ago
                Date of 1st Reply: