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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Atlas
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 5 days ago