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

TypeError: Cannot create property 'afterWriteTickInfo' on string '[Circular]'

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0
    • Affects Version/s: None
    • Component/s: CLI Module
    • None
    • Iteration Geneva
    • Not Needed

      As reported on Slack:

      $ ./mongosh-0.15.6-linux-x64/bin/mongosh
      Current Mongosh Log ID:	60e7fca7c1e7bb676a145aae
      Connecting to:		mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000
      Using MongoDB:		5.0.0-rc7
      Using Mongosh:		0.15.6
      
      For mongosh info see: https://docs.mongodb.com/mongodb-shell/
      
      ------
         The server generated these startup warnings when booting:
         2021-07-06T16:46:21.409+02:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
         2021-07-06T16:46:21.985+02:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
         2021-07-06T16:46:21.985+02:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning
         2021-07-06T16:46:21.985+02:00: Soft rlimits for open file descriptors too low
      ------
      
      test> var pipeline = db.movies.aggregate([{ $match: {"imdb.rating": {$eq: 7}, genres: {$nin: ["Crime", "Horror"]}, rated: {$eq:"PG", $eq:"G"}, languages:{$in: ["English","Japanese"]}}},{ $count: "total"}])
      
      test> load('./validateLab1.js')
      true
      test> validateLab1(pipeline)
      internal/streams/writable.js:452
        state.afterWriteTickInfo = null;
                                 ^
      
      TypeError: Cannot create property 'afterWriteTickInfo' on string '[Circular]'
          at afterWriteTick (internal/streams/writable.js:452:28)
          at processTicksAndRejections (internal/process/task_queues.js:81:21)
      

      which is obviously all kinds of weird.

      (validateLab1.js from https://s3.amazonaws.com/edu-downloads.10gen.com/M121/2021/July/static/handouts/m121/chapter1.zip)

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: