Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3814

Share Schema as JSON causes javascript error, does not open save dialog

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.20.0
    • Affects Version/s: 1.19.0
    • Component/s: Compass
    • Environment:
      MacOSX
    • Iteration Manatee, Iteration Newt

      Unable to use the Collection: Share Schema as JSON menu item in Compass 1.19.0.

      The following error is generated in Dev Tools and no dialog is displayed to share/save the schema.

      Uncaught Error: Could not call remote function 'showMessageBox'. Check that the function signature is correct. Underlying error: Error processing argument at index 10, conversion failure from 
      Error: Could not call remote function 'showMessageBox'. Check that the function signature is correct. Underlying error: Error processing argument at index 10, conversion failure from 
          at callFunction (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:258)
          at EventEmitter.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:360)
          at EventEmitter.emit (events.js:182)
          at WebContents.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/api/web-contents.js:293)
          at WebContents.emit (events.js:182)
          at callFunction (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:258)
          at EventEmitter.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/rpc-server.js:360)
          at EventEmitter.emit (events.js:182)
          at WebContents.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/browser/api/web-contents.js:293)
          at WebContents.emit (events.js:182)
          at metaToException (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:271)
          at Object.exception (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:219)
          at metaToValue (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:223)
          at Object.remoteMemberFunction (/Applications/MongoDB Compass.app/Contents/Resources/electron.asar/renderer/api/remote.js:123)
          at Store.handleSchemaShare (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:57)
          at EventEmitter.emit (events.js:182)
      

            Assignee:
            irina.shestak@mongodb.com Irina Shestak (Inactive)
            Reporter:
            brian.blevins@mongodb.com Brian Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: