Error-like objects can break analytics reporting

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Telemetry Data
    • None
    • 3
    • None

      test> throw { code: db, errmsg: db }
      Uncaught:
      MongoshInternalError: [COMMON-90001] Converting circular structure to JSON
          --> starting at object with constructor 'Topology'
          |     property 's' -> object with constructor 'Object'
          |     property 'sessionPool' -> object with constructor 'ServerSessionPool'
          --- property 'topology' closes the circle
      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 (/home/addaleax/.mongodb/mongosh/61236e90660d591e602147fe_log).
      
      test> ({ message: db, stack: db, code: db, errmsg: db })
      Uncaught:
      MongoshInternalError: [COMMON-90001] Converting circular structure to JSON
          --> starting at object with constructor 'Topology'
          |     property 's' -> object with constructor 'Object'
          |     property 'sessionPool' -> object with constructor 'ServerSessionPool'
          --- property 'topology' closes the circle
      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 (/home/addaleax/.mongodb/mongosh/61236e90660d591e602147fe_log).
      

              Assignee:
              Unassigned
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: