error parsing command line options: error parsing uri

1,411 views
Skip to first unread message

pruthviraj chandorikar

unread,
Mar 23, 2019, 4:27:26 PM3/23/19
to mongodb-user
how can I solve this error 
Screen Shot 2019-03-23 at 8.01.52 PM.png
Screen Shot 2019-03-23 at 7.59.49 PM.png

Kevin Adistambha

unread,
Mar 27, 2019, 8:21:29 PM3/27/19
to mongodb-user

Hi,

The error scheme must be "mongodb" means that you’re using MongoDB older than 3.6. Please upgrade to the latest version (4.0.7) and try the command again.

You can check your mongorestore version by running mongorestore --version.

Best regards,
Kevin

pruthviraj chandorikar

unread,
Mar 27, 2019, 10:50:38 PM3/27/19
to mongod...@googlegroups.com
No my mongodb is updated that is 4.0.6

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/a5ac2070-ba8c-4b55-80fe-488410961c44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Screen Shot 2019-03-28 at 8.18.54 AM.png

Kevin Adistambha

unread,
Mar 27, 2019, 10:55:23 PM3/27/19
to mongodb-user

Hi,

No my mongodb is updated that is 4.0.6

Are you still seeing the scheme must be "mongodb" message, or are you seeing some other message now? Could you try that command again?

Also please refrain from posting screenshots. Screenshots are difficult to read and will not render well in some devices. Please copy the outputs as text.

Best regards,
Kevin

pruthviraj chandorikar

unread,
Mar 29, 2019, 1:12:18 PM3/29/19
to mongod...@googlegroups.com
I exllty sorry for screen shorts, I thought you can understand where is error, actully now it throwing error 
 FAIL  test/lessons/mongoclient.spec.js (12.882s)
  MongoClient
    ✓ Client initialized with URI (2188ms)
    ✕ Client initialized with URI and options (475ms)
    ✓ Database handle created from MongoClient (1832ms)
    ✕ Collection handle created from database handle (448ms)

  ● MongoClient › Client initialized with URI and options

and showing red arrow at close 
 testClient.close()   
                 ^        


what can I do ?

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

Kevin Adistambha

unread,
Mar 31, 2019, 7:19:50 PM3/31/19
to mongodb-user

Hi,

Sorry I’m totally confused now.

  • In your first post, you saw an error scheme must be "mongodb" when you try to import data into Atlas. This error happens when you’re using an old version of MongoDB and try to import into Atlas.
  • In your second post, you mentioned that your MongoDB is version 4.0.6. The error scheme must be "mongodb" will not happen in Atlas anymore, so I don’t know what issue you’re seeing, or is there an issue.
  • In your third post, you showed some test error. I don’t understand how this have anything to do with the original question, which is scheme must be "mongodb" error as described in the first post?

If you’re still seeing an issue, could you explain:

  1. What exactly the issue is
  2. What error message you’re seeing
  3. What commands you executed

Best regards,
Kevin

pruthviraj chandorikar

unread,
Apr 2, 2019, 1:10:57 AM4/2/19
to mongod...@googlegroups.com
I'm extremely sorry sir, I get error for importing data into my cluster but I have solved, then I gone for next step 
npm test -t db-connection  for this command it is throwing me error 
 FAIL  test/db-connection.test.js
  ● Test suite failed to run

    TypeError: Cannot read property 'close' of undefined
like this then what can I do ?
and once again sorry for your confusion. 


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

Kevin Adistambha

unread,
Apr 3, 2019, 1:17:29 AM4/3/19
to mongodb-user

Hi,

Sorry I still have no idea what you’re trying to do. Could you answer:

  1. Are you doing the m220 course?
  2. What is the context of the npm test you’re running?

Best regards,
Kevin

pruthviraj chandorikar

unread,
Apr 3, 2019, 12:40:49 PM4/3/19
to mongod...@googlegroups.com
1) Yes
2) want to test mongoclient is working or not 

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
Reply all
Reply to author
Forward
0 new messages