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

Starting with extraneous numerical argument produces unspecified error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.1
    • Component/s: Shell
    • Labels:
      None
    • Documentation Changes:
      Not Needed
    • Sprint:
      Iteration Athens

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: