IvanGlinkin / CCTV

Close-Circuit Telegram Vision revolutionizes location tracking with its open-source design and Telegram API integration. Offering precise tracking within 50-100 meters, users can monitor others in real-time for logistics or safety, redefining how we navigate our surroundings
GNU General Public License v3.0
2.31k stars 318 forks source link

Add FloodWaitError import #23

Closed paracosm17 closed 2 months ago

paracosm17 commented 2 months ago

Good afternoon!

There was a critical error in the project: in the file start.py the FloodWaitError was not imported, which caused an error:

Traceback (most recent call last):
  File "/home/alex/code/CCTV/start.py", line 152, in <module>
    except FloodWaitError as e:
           ^^^^^^^^^^^^^^
NameError: name 'FloodWaitError' is not defined

I fixed this error by adding the necessary import

alxdrf commented 2 months ago

Добрый день. Стала вылезать такая ошибка. Подскажите, пожалуйста, в чем может быть ошибка?

[ * ] Start harvesting data: [ 1/25 ] Latitude ######, Longitude ###### [ > ] Harvesting data finished [ > ] Updating JSON file...successfully [ 2/25 ] Latitude ######, Longitude ######
[ > ] Harvesting data finished [ > ] Updating JSON file...successfully Traceback (most recent call last):
File "//CCTV/start.py", line 145, in result = client(functions.contacts.GetLocatedRequest( File "//venv/lib/python3.10/site-packages/telethon/sync.py", line 39, in syncified return loop.run_until_complete(coro) File "/opt/homebrew/Cellar/python@3.10/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/*/venv/lib/python3.10/site-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "//venv/lib/python3.10/site-packages/telethon/client/users.py", line 87, in _call result = await future telethon.errors.rpcerrorlist.SessionRevokedError: The authorization has been invalidated, because of the user terminating all sessions (caused by GetLocatedRequest)