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

MongoshInternalError: [COMMON-90001] Error [ERR_INTERNAL_ASSERTION]: RangeError: Invalid time value at Date.toISOString (<anonymous>)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.1.0
    • CLI Module
    • None
    • MongoDB Atlas, Windows 11,
    • 2
    • Not Needed
    • Iteration Lutz

    Description

      Problem Statement/Rationale

      What is going wrong?

       

      Atlas atlas-51j2uf-shard-0 [primary] SauronDV> db.Activities.aggregate([ {$match:{ _id: Binary(Buffer.from("7b010000f4eb49364596b74789000006", "hex"), 3) }}, {$project: {Timestamp:1, mydate: {$toDate: {$first: "$Timestamp"}} }}, {$sort: {Timestamp:1}} ])
      Uncaught:
      MongoshInternalError: [COMMON-90001] Error [ERR_INTERNAL_ASSERTION]: RangeError: Invalid time value
      at Date.toISOString (<anonymous>)
      at Date.dateInspect (C:\Program Files\mongosh\mongosh.exe:309991:27)
      at formatValue (internal/util/inspect.js:736:19)
      at formatProperty (internal/util/inspect.js:1650:11)
      at formatRaw (internal/util/inspect.js:978:9)
      at formatValue (internal/util/inspect.js:765:10)
      at formatProperty (internal/util/inspect.js:1650:11)
      at formatArray (internal/util/inspect.js:1479:17)
      at formatRaw (internal/util/inspect.js:975:14)
      at formatValue (internal/util/inspect.js:765:10)
      This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
      Please open an issue with this stack trace at https://github.com/nodejs/node/issues

      at Function.fail (internal/assert.js:20:9)
      at handleMaxCallStackSize (internal/util/inspect.js:1342:10)
      at formatRaw (internal/util/inspect.js:985:12)
      at formatValue (internal/util/inspect.js:765:10)
      at formatProperty (internal/util/inspect.js:1650:11)
      at formatArray (internal/util/inspect.js:1479:17)
      at formatRaw (internal/util/inspect.js:975:14)
      at formatValue (internal/util/inspect.js:765:10)
      at Object.inspect (internal/util/inspect.js:310:10)
      at inspect (C:\Program Files\mongosh\mongosh.exe:310000:27)
      This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
      Please open an issue with this stack trace at https://github.com/nodejs/node/issues

      This is an error inside mongosh. Please file a bug report for the MONGOSH project here: https://jira.mongodb.org/projects/MONGOSH/issues.
      Please include the log file for this session (C:\Users\dvillasi\AppData\Local\mongodb\mongosh\615250db8445d3dd6cba47da_log).

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

      Attachments

        Activity

          People

            anna.henningsen@mongodb.com Anna Henningsen
            dominic.villasin@aristocrat.com Dominic Villasin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: