Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-728

Starting with extraneous numerical argument produces unspecified error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.12.1
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • Labels:
      None
    • Not Needed
    • Iteration Athens

      Problem Description

      Started with port number but missing --port

      Got unspecified error:

      arg.startsWith is not a function
      

       

      Steps to Reproduce

      ericsommer@~> mongosh aaa
      Current Mongosh Log ID: 6087da636c2bf4f352d07f84
      Connecting to: mongodb://127.0.0.1:27017/aaa?directConnection=true&serverSelectionTimeoutMS=2000
      MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
      ericsommer@~> mongosh 44441
      TypeError: arg.startsWith is not a function

      Expected Results

      More intuitive error

      Actual Results

       

      Additional Notes

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            eric.sommer@mongodb.com Eric Sommer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: