Importing Data: Failed: file data does not have .bson extension

Hi ,

When i am trying to import data i am getting below error , please advice .

" Failed: file data does not have .bson extension ".

I checked mongorestore --help and ideally --gzip command should unzip the files which have .gz extension . Please help me out here.

Command used :

">mongorestore --drop --gzip --uri mongodb+srv://m220student:m220password@mflix-xxxxx/test?retryWrites=true data "

In the list of files you shown you have a file named data of size 0KB, with no .bson and no .gz extensions. Thus you have an error that says:

Thanks @steevej-1495 for replying , i have just unzipped the class handout and it was already present. Did some research and the real reason was this ticket https://jira.mongodb.org/browse/TOOLS-857 - have a look.

Thanks once again.