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

pymongo.errors.ConfigurationError: Unknown option: ssl_cert_reqs. Did you mean one of (sockettimeoutms, heartbeatfrequencyms, localthresholdms) or maybe a camelCase version of one? Refer to docstring. #56

Open
gouthucr13 opened this issue Sep 16, 2024 · 0 comments

Comments

@gouthucr13
Copy link

gouthucr13 commented Sep 16, 2024

Traceback (most recent call last):
File "/home/kali/.local/lib/python3.11/site-packages/pymongo/common.py", line 819, in _get_validator
return validators[normed_key]
~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'ssl_cert_reqs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/mongoaudit", line 8, in
sys.exit(main())
^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/main.py", line 64, in main
App().main()
^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/main.py", line 23, in init
self.main()
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/main.py", line 58, in main
self.loop.run()
File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 337, in run
self._run()
File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 439, in _run
self.event_loop.run()
File "/usr/lib/python3/dist-packages/urwid/event_loop/select_loop.py", line 182, in run
self._loop()
File "/usr/lib/python3/dist-packages/urwid/event_loop/select_loop.py", line 229, in _loop
record.data()
File "/usr/lib/python3/dist-packages/urwid/display/_posix_raw_display.py", line 273, in wrapper
return self.parse_input(event_loop, callback, self.get_available_raw_input())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/display/_raw_display_base.py", line 488, in parse_input
callback(decoded_codes, raw_codes)
File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 466, in _update
self.process_input(keys)
File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 566, in process_input
handled_key = self._topmost_widget.keypress(self.screen_size, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 729, in keypress
return get_delegate(self).keypress(size, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/overlay.py", line 571, in keypress
return self.top_w.keypress(
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/pile.py", line 921, in keypress
key = self.focus.keypress(size_args[i], key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/widgets.py", line 220, in keypress
return self.__super.keypress(size, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 729, in keypress
return get_delegate(self).keypress(size, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 729, in keypress
return get_delegate(self).keypress(size, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/widget.py", line 729, in keypress
return get_delegate(self).keypress(size, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/pile.py", line 921, in keypress
key = self.focus.keypress(size_args[i], key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/padding.py", line 443, in keypress
return self._original_widget.keypress(maxvals, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/pile.py", line 921, in keypress
key = self.focus.keypress(size_args[i], key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urwid/widget/pile.py", line 921, in keypress
key = self.focus.keypress(size_args[i], key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/widgets.py", line 145, in keypress
self.next_callback()
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/widgets.py", line 184, in next
self.callbacks['next'](form=self, **(self.get_field_values()))
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/cards.py", line 99, in _next
tester = Tester(cred, tests)
^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/testers/testers.py", line 32, in init
self.conn = self.get_connection()
^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/testers/testers.py", line 77, in get_connection
return Tester.get_tls_connection(fqdn, port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/mongoaudit/testers/testers.py", line 86, in get_tls_connection
return pymongo.MongoClient(
^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/pymongo/mongo_client.py", line 813, in init
dict(common.validate(keyword_opts.cased_key(k), v) for k, v in keyword_opts.items())
File "/home/kali/.local/lib/python3.11/site-packages/pymongo/mongo_client.py", line 813, in
dict(common.validate(keyword_opts.cased_key(k), v) for k, v in keyword_opts.items())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/pymongo/common.py", line 827, in validate
validator = _get_validator(option, VALIDATORS, normed_key=option.lower())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/pymongo/common.py", line 822, in _get_validator
raise_config_error(key, suggestions)
File "/home/kali/.local/lib/python3.11/site-packages/pymongo/common.py", line 169, in raise_config_error
raise ConfigurationError(msg)
pymongo.errors.ConfigurationError: Unknown option: ssl_cert_reqs. Did you mean one of (sockettimeoutms, heartbeatfrequencyms, localthresholdms) or maybe a camelCase version of one? Refer to docstring.

Kindly help me with the solution ASAP. Thanks in advance@!

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

No branches or pull requests

1 participant