Not able to import data to cluster

mongorestore --drop --gzip --uri mongodb+srv://m220student:m220password@mflix-3detn.mongodb.net/test?retryWrites=true data

2019-05-18T12:37:40.870+0530 error parsing command line options: error parsing uri (mongodb+srv://m220student:m220password@mflix-3detn.mongodb.net/test?retryWrites=true): lookup mflix-3detn.mongodb.net on 127----------: cannot unmarshal DNS message
2019-05-18T12:37:40.871+0530 try ‘mongorestore --help’ for more information

Looks like short string not working

Please check this link

Cannot unmarshal DNS message - Error while importing data to mongo from mflix-js

I would try to update mongorestore to a more recent version.

Hi @Rajesh_73874,

Let us know if you are still facing trouble. If yes, then try the following string:

  mongorestore --drop --gzip --uri mongodb+srv://m220student:m220password@mflix-3detn.mongodb.net data

Kanika

1 Like