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

TypeError: 'Database' object is not callable #40

Open
fran7ik opened this issue Sep 9, 2022 · 1 comment
Open

TypeError: 'Database' object is not callable #40

fran7ik opened this issue Sep 9, 2022 · 1 comment

Comments

@fran7ik
Copy link

fran7ik commented Sep 9, 2022

Traceback (most recent call last):
File "/opt/zabmon/zabbix-mongodb.py", line 237, in
mongodb.get_db_names()
File "/opt/zabmon/zabbix-mongodb.py", line 72, in get_db_names
db_names = self.__conn.database_names()
TypeError: 'Database' object is not callable

MongoDB server version: 6.0.1
db version v4.0.28

@fran7ik fran7ik changed the title Can't connect to DB TypeError: 'Database' object is not callable Sep 9, 2022
@rpelissi
Copy link

Got the same issue, for that particular bug, replace line 78:

< db_names = self.__conn.database_names()
> db_names = self.__conn.list_database_names()

Still some issues after that but..

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

2 participants