Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-245

Unfolding a database connection produces "t.forEach is not a function"

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Connectivity
    • None
    • Not Needed

      Problem Description

      When trying to browse a local instance of a database, the VS Code Extension gives out an error message "t.forEach is not a function"

      Steps to Reproduce

      Add a new Connection.

      Unfold the connection with the arrow icon.

      Expected Results

      The databases are unfolded.

      Actual Results

      An error message is shown "t.forEach is not a function"

      Additional Notes

      Occured on ubuntu 20.04.2 with vscode version 1.54.3 and extension version 0.5.0

      I tried it with different docker images of the mongo server (4.0.4 and 3.6.2) as well as a local installation of mongod.

      Also, another similar extension (Mongodb-dly) produces a similar error: "databases is not iterable", so it is possibly a problem with MongoDB NodeJS Driver, as both extensions share this dependency

            Assignee:
            Unassigned Unassigned
            Reporter:
            konstantin.hiesinger@gmail.com Konstantin H.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: