CodeXBotz / File-Sharing-Bot

Telegram Bot to store Posts and Documents and it can Access by Special Links.
https://t.me/CodeXBotz
GNU General Public License v3.0
2.03k stars 5.65k forks source link

Bot Is Running But #281

Open skycloud-source opened 10 months ago

skycloud-source commented 10 months ago

pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed:

i Update pymongo but not fix

Hw to fix this error

hazyfossa commented 10 months ago

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 commented 10 months ago

i follow your steps error not fix

bot run

hazyfossa commented 10 months ago

Thats strange.. Are you using MongoDB Atlas?

skycloud-source commented 10 months ago

Thats strange.. Are you using MongoDB Atlas?

yes bro