-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 3.4.6
-
Component/s: mongoimport
-
Environment:OSX 10.11.6
Summary: mongoimport throws errors when passed the MongoDB URI as it is in the Atlas Connection dialog
mongoimport --uri 'mongodb://importUser:importme123@gettingstarted-shard-00-00-msxz1.mongodb.net:27017,gettingstarted-shard-00-01-msxz1.mongodb.net:27017,gettingstarted-shard-00-02-msxz1.mongodb.net:27017/guidebook?ssl=true&replicaSet=GettingStarted-shard-0&authSource=admin' --collection=restaurants --file primer-dataset.json
2017-07-25T15:42:36.839-0400 connected to: localhost
2017-07-25T15:42:36.851-0400 Failed: error configuring session: write concern error: cannot specify writeConcern string and connectionString object
2017-07-25T15:42:36.851-0400 imported 0 documents
NOTE: CLOUDP-19464 and CLOUDP-20324 may resolve the issue if its related to the connection string itself
mongoimport version: r3.4.6 git version: c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5 Go version: go1.7 os: darwin arch: amd64 compiler: gc OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016