[DOCS-12425] [Atlas] Perl connectivity example for mongodb+srv format is incorrect Created: 05/Feb/19  Updated: 29/Oct/23  Resolved: 08/Feb/19

Status: Closed
Project: Documentation
Component/s: Atlas
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dmitry Ryabtsev Assignee: Steve Renaker (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 5 years, 5 days ago

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



 Comments   
Comment by Dmitry Ryabtsev [ 08/Feb/19 ]

LGTM

Comment by Steve Renaker (Inactive) [ 08/Feb/19 ]

Hi dmitry.ryabtsev, thanks for noticing this. I updated the connection string example. You can check out the PR here: https://github.com/10gen/cloud-docs/pull/650

Generated at Thu Feb 08 08:05:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.