Not able to import data to cluster

mongorestore --drop --gzip --uri mongodb+srv:// data

2019-05-18T12:37:40.870+0530 error parsing command line options: error parsing uri (mongodb+srv:// lookup 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:// data


1 Like