Cause exception while getting updates.
Traceback (most recent call last):
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\connector.py", line 986, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "C:\Users\vstas\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1089, in create_connection
transport, protocol = await self._create_connection_transport(
File "C:\Users\vstas\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1119, in _create_connection_transport
await waiter
ConnectionResetError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\vstas\Desktop\projects\venv\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\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\client.py", line 1138, in __aenter__
self._resp = await self._coro
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\client.py", line 535, in _request
conn = await self._connector.connect(
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\connector.py", line 907, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\connector.py", line 1206, in _create_direct_connection
raise last_exc
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiohttp\connector.py", line 992, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [None]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 381, in start_polling
updates = await self.bot.get_updates(
File "C:\Users\vstas\Desktop\projects\venv\lib\site-packages\aiogram\bot\bot.py", line 110, in get_updates
result = await self.request(api.Methods.GET_UPDATES, payload)
File "C:\Users\vstas\Desktop\projects\venv\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\vstas\Desktop\projects\venv\lib\site-packages\aiogram\bot\api.py", line 142, in make_request
raise exceptions.NetworkError(f"aiohttp client throws an error: {e.__class__.__name__}: {e}")
aiogram.utils.exceptions.NetworkError: Aiohttp client throws an error: ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [None]