title: Mongorestore keeps throwing "(NotMaster) not master" error at me
body: <p>I am new to mongodb and I've been trying to restore my data from mongodump. Any time I try running the script in terminal, it executes nearly entirely, then reverts. I've tried looking around but solutions haven't touched on the <strong>'not master'</strong> issue</p>
  
  <p>This is my mongorestore script; placeholders used for brevity</p>
  
  <pre><code>mongorestore --host 'the-given-shard.net:27017' \
    --ssl -u 'username' -p 'placeholder' --authenticationDatabase admin --db=loc8r \
    --collection=locations dump/loc8r/locations.bson
  </code></pre>
  
  <p>And this is the output</p>
  
  <pre><code>2020-02-04T17:30:21.817+0000    checking for collection data in dump/loc8r/locations.bson
  2020-02-04T17:30:22.123+0000    restoring to existing collection loc8r.locations without dropping
  2020-02-04T17:30:22.123+0000    reading metadata for loc8r.locations from dump/loc8r/locations.metadata.json
  2020-02-04T17:30:22.124+0000    restoring loc8r.locations from dump/loc8r/locations.bson
  2020-02-04T17:30:24.205+0000    [########################]  loc8r.locations  8.21KB/8.21KB  (100.0%)
  2020-02-04T17:30:24.888+0000    [########################]  loc8r.locations  8.21KB/8.21KB  (100.0%)
  2020-02-04T17:30:24.888+0000    finished restoring loc8r.locations (0 documents, 0 failures)
  2020-02-04T17:30:24.889+0000    Failed: loc8r.locations: error restoring from dump/loc8r/locations.bson: (NotMaster) not master
  2020-02-04T17:30:24.889+0000    0 document(s) restored successfully. 0 document(s) failed to restore.
  </code></pre>