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

Bot Is Running But #281

Open
skycloud-source opened this issue Dec 16, 2023 · 4 comments
Open

Bot Is Running But #281

skycloud-source opened this issue Dec 16, 2023 · 4 comments

Comments

@skycloud-source
Copy link

pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed:

i Update pymongo but not fix

Hw to fix this error

@hazyfossa
Copy link

hazyfossa commented Dec 16, 2023

This looks like a certificate issue with your OS. A quick fix for the bot to work is probably installing certifi (pip install certifi), then in database/database.py add import certifi and change line 10 to
dbclient = pymongo.MongoClient(DB_URI, tlsCAFile=certifi.where())
This shouldn't normally happen though

@skycloud-source
Copy link
Author

i follow your steps error not fix

bot run

@hazyfossa
Copy link

Thats strange.. Are you using MongoDB Atlas?

@skycloud-source
Copy link
Author

Thats strange.. Are you using MongoDB Atlas?

yes bro

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