Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: __quiet is not defined #167

Open
js-d-coder opened this issue May 2, 2023 · 8 comments
Open

ReferenceError: __quiet is not defined #167

js-d-coder opened this issue May 2, 2023 · 8 comments

Comments

@js-d-coder
Copy link

js-d-coder commented May 2, 2023

I am running latest variety.js with mongo shell v1.8.2.

The output:

$ mongosh <url> -u <username> -p <password> variety.js  db_name "var collection = 'order', limit = 1"          
Current Mongosh Log ID:	6451050052c79839df450684
Connecting to:		<url>
Using MongoDB:		4.4.19
Using Mongosh:		1.8.2

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

Loading file: variety.js
ReferenceError: __quiet is not defined

I am not sure what did I do wrong here. Please help me. Thanks.

@js-d-coder
Copy link
Author

This is not working either:

$ mongosh <url> -u <username> -p <password>  --eval "var collection = 'order', limit = 1" variety.js --quiet 

ReferenceError: __quiet is not defined

@js-d-coder
Copy link
Author

Looks like latest variety.js is not working with Mongo shell v1.8?

@JamesCropcho
Copy link
Member

JamesCropcho commented May 2, 2023

Hello Jibran! Thank you for using Variety.

Looks like latest variety.js is not working with Mongo shell v1.8?

Alas, that is indeed quite possible. Variety's MongoDB "driver" (?) is quite out-of-date.

Certainly, upgrading this and other other dependencies to newer versions is on the docket! I recall that I tried to upgrade this particular dependency which is causing you problems and it was not able to be done "effortlessly." If you wanted to take a stab, I wouldn't tell you no…otherwise, it will have to wait for me or someone else to attempt a fix.

Best,
James

@js-d-coder
Copy link
Author

Thanks for the quick response.

@js-d-coder
Copy link
Author

Hi,
The link you shared is not working. Also, can you pls tell me with which Mongo shell version will variety work with?

@JamesCropcho
Copy link
Member

The link you shared is not working.

Ah, thank you for letting me know. I have removed it. I was not aware that Dependabot warnings for public repositories are private.

which Mongo shell version will variety work with?

I am not sure that the latest version is which will work with Variety. However, it looks like the latest version which was part of the automated CI and test suite was v3.2 (cf https://github.com/variety/variety/blob/master/.travis.yml#L12). However, Variety may indeed work with newer MongoDB versions.


I'm thrilled that Variety continues to be used and to have a community. I do admit that the project is need of some serious love by me and/or others—not necessarily to add features but even simply to modernize it, i.e. 1) make it work with recent versions of things; and 2) ensure that the dependencies lack published security exploits/warnings.

I sincerely wish I could do the above this very afternoon, but truth be told I have a number of unrelated tasks presently on my docket which have rightfully declared themselves to be of superseding priority. ―James

@Light-Towers
Copy link

MongoDB shell version v3.6.23 can work。(https://fastdl.mongodb.org/linux/mongodb-shell-linux-x86_64-rhel70-3.6.23.tgz)

  • Mongo Server:6.0.6 / 5.0.5

@JamesCropcho
Copy link
Member

Hello @Light-Towers , thank you very much for letting us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants