Unable to load query executor, query tool not working

prakash choudhary shared this problem 2 years ago
Cannot Reproduce

Cannot read property 'getDatabase' of undefined


stack: TypeError: Cannot read property 'getDatabase' of undefined


at e.get [as database] (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar\frontend\misc\VisualQueryBuilder.js:1:10360)


at e.<anonymous> (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar\frontend\misc\VisualQueryBuilder.js:1:14625)


at r (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar\frontend\misc\VisualQueryBuilder.js:1:3477)


at Object.next (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar\frontend\misc\VisualQueryBuilder.js:1:2812)


at s (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar\frontend\misc\VisualQueryBuilder.js:1:2541)


at tryCatcher (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar" +


"ode_modules\bluebird\js\main\util.js:26:23)


at Promise._settlePromiseFromHandler (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar" +


"ode_modules\bluebird\js\main\promise.js:507:31)


at Promise._settlePromiseAt (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar" +


"ode_modules\bluebird\js\main\promise.js:581:18)


at Async._drainQueue (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar" +


"ode_modules\bluebird\js\main\async.js:128:12)


at Async._drainQueues (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar" +


"ode_modules\bluebird\js\main\async.js:133:10)


at MutationObserver.Async.drainQueues (C:\Users\PRAKASH\AppData\Local\mongobooster\app-4.1.3\resources\app.asar" +


"ode_modules\bluebird\js\main\async.js:15:14)

Comments (1)

photo
1

Thank you for your feedback.


Could you please give me the detailed steps and sample script to recall the issue?

photo
1

I have a local mongo server, I am simply connecting my local mongodb instance and then when I try to open shell or if i right click on my collection and try to view the documents nothing comes up. I have windows 10 machine, it was initially working for few days but later I believe my windows machine has undergone an update and after that it never worked. I tried uninstalling and reinstalling the mongobooster setup but still i never got it working.

photo
1

Same behavior macOS Sierra.

Cannot read property 'getDatabase' of undefined

stack: TypeError: Cannot read property 'getDatabase' of undefined

at e.get [as database] (/Applications/mongobooster.app/Contents/Resources/app.asar/frontend/misc/VisualQueryBuilder.js:1:10360) etc

photo
1

Which version are you using? And, If this error can be reproduced consistently, could you please give me the complete reproduce steps and sample scripts?

photo
1

Version 4.1.3 (4.1.3). 1) Launch the software 2) Connect Database -any of them. 3) Select Collection 4) View Collection or double click. I get an empty white panel instead of the documents list and the Shell or SQL query tab. 5) I click on "Query" button and get an error popup window with the following error message:


Cannot read property 'getDatabase' of undefined

stack: TypeError: Cannot read property 'getDatabase' of undefined

at e.get [as database] (/Applications/mongobooster.app/Contents/Resources/app.asar/frontend/misc/VisualQueryBuilder.js:1:10360)

at e.<anonymous> (/Applications/mongobooster.app/Contents/Resources/app.asar/frontend/misc/VisualQueryBuilder.js:1:14625)

at r (/Applications/mongobooster.app/Contents/Resources/app.asar/frontend/misc/VisualQueryBuilder.js:1:3477)

at Object.next (/Applications/mongobooster.app/Contents/Resources/app.asar/frontend/misc/VisualQueryBuilder.js:1:2812)

at s (/Applications/mongobooster.app/Contents/Resources/app.asar/frontend/misc/VisualQueryBuilder.js:1:2541)

at tryCatcher (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/bluebird/js/main/util.js:26:23)

at Promise._settlePromiseFromHandler (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/bluebird/js/main/promise.js:507:31)

at Promise._settlePromiseAt (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/bluebird/js/main/promise.js:581:18)

at Async._drainQueue (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/bluebird/js/main/async.js:128:12)

at Async._drainQueues (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/bluebird/js/main/async.js:133:10)

at MutationObserver.Async.drainQueues (/Applications/mongobooster.app/Contents/Resources/app.asar/node_modules/bluebird/js/main/async.js:15:14)

photo
2

I had the same problem. Had to delete all the files in appdata local/roaming and reinstall. Works again now.

photo
1

Thanks Dan! OSx folder is ~/Library/Application Support/

I removed the whole mongobooster folder. No need to reinstall.

photo
1

We just released V4.2. Could you please download and give a try? This problem may have been solved in the latest version

photo