Здравствуйте!
Сделал бота, собираюсь скоро залезать на сервер. Все работает, но через некоторое время работы выходит ошибка
ERROR:aiogram.dispatcher.dispatcher:Cause exception while getting updates.
Traceback (most recent call last):
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 381, in start_polling
updates = await self.bot.get_updates(
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\bot\bot.py", line 110, in get_updates
result = await self.request(api.Methods.GET_UPDATES, payload)
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\bot\base.py", line 236, in request
return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\bot\api.py", line 140, in make_request
return check_result(method, response.content_type, response.status, await response.text())
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\bot\api.py", line 128, in check_result
raise exceptions.TelegramAPIError(description)
aiogram.utils.exceptions.TelegramAPIError: Bad Gateway
ERROR:aiogram.dispatcher.dispatcher:Cause exception while getting updates.
Traceback (most recent call last):
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 381, in start_polling
updates = await self.bot.get_updates(
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\bot\bot.py", line 110, in get_updates
result = await self.request(api.Methods.GET_UPDATES, payload)
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\bot\base.py", line 236, in request
return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiogram\bot\api.py", line 139, in make_request
async with session.post(url, data=req, **kwargs) as response:
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\client.py", line 1141, in __aenter__
self._resp = await self._coro
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\client.py", line 560, in _request
await resp.start(conn)
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\client_reqrep.py", line 914, in start
self._continue = None
File "C:\Users\Denis\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\helpers.py", line 721, in __exit__
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
Кто подскажет, как с ней бороться ?)