File-Sharing-Bot icon indicating copy to clipboard operation
File-Sharing-Bot copied to clipboard

Bot Is Running But

Open skycloud-source opened this issue 1 year ago • 4 comments

pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed:

i Update pymongo but not fix

Hw to fix this error

skycloud-source avatar Dec 16 '23 01:12 skycloud-source

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

hazyfossa avatar Dec 16 '23 14:12 hazyfossa

i follow your steps error not fix

bot run

skycloud-source avatar Dec 16 '23 14:12 skycloud-source

Thats strange.. Are you using MongoDB Atlas?

hazyfossa avatar Dec 17 '23 07:12 hazyfossa

Thats strange.. Are you using MongoDB Atlas?

yes bro

skycloud-source avatar Dec 17 '23 07:12 skycloud-source