Facebook
From Torrid Agouti, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 84
  1. (venv) 08:28 ~/bott $ python bot1.py
  2. Goodbye!
  3. Traceback (most recent call last):
  4.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
  5.     return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
  6.   File "/usr/lib/python3.8/asyncio/base_events.py", line 1017, in create_connection
  7.     raise exceptions[0]
  8.   File "/usr/lib/python3.8/asyncio/base_events.py", line 1002, in create_connection
  9.     sock = await self._connect_sock(
  10.   File "/usr/lib/python3.8/asyncio/base_events.py", line 916, in _connect_sock
  11.     await self.sock_connect(sock, address)
  12.   File "/usr/lib/python3.8/asyncio/selector_events.py", line 485, in sock_connect
  13.     return await fut
  14.   File "/usr/lib/python3.8/asyncio/selector_events.py", line 490, in _sock_connect
  15.     sock.connect(address)
  16. OSError: [Errno 101] Network is unreachable
  17.  
  18. The above exception was the direct cause of the following exception:
  19. Traceback (most recent call last):
  20.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/bot/api.py", line 139, in make_request
  21.     async with session.post(url, data=req, **kwargs) as response:
  22.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/client.py", line 1117, in __aenter__
  23.     self._resp = await self._coro
  24.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/client.py", line 520, in _request
  25.     conn = await self._connector.connect(
  26.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect
  27.     proto = await self._create_connection(req, traces, timeout)
  28.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _create_connection
  29.     _, proto = await self._create_direct_connection(req, traces, timeout)
  30.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
  31.     raise last_exc
  32.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
  33.     transp, proto = await self._wrap_create_connection(
  34.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection
  35.     raise client_error(req.connection_key, exc) from exc
  36. aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [Network is unreachable]
  37. During handling of the above exception, another exception occurred:
  38. Traceback (most recent call last):
  39.   File "bot1.py", line 21, in <module>
  40.     executor.start_polling(dp, skip_updates=True)
  41.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/utils/executor.py", line 41, in start_polling
  42.     executor.start_polling(reset_webhook=reset_webhook, timeout=timeout, relax=relax, fast=fast)
  43.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/utils/executor.py", line 309, in start_polling
  44.     loop.run_until_complete(self._startup_polling())
  45.   File "/usr/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete
  46.     return future.result()
  47.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/utils/executor.py", line 360, in _startup_polling
  48.     await self._welcome()
  49.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/utils/executor.py", line 350, in _welcome
  50.     user = await self.dispatcher.bot.me
  51.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/bot/bot.py", line 29, in me
  52.     setattr(self, '_me', await self.get_me())
  53.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/bot/bot.py", line 217, in get_me
  54.     result = await self.request(api.Methods.GET_ME, payload)
  55.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/bot/base.py", line 208, in request
  56.     return await api.make_request(self.session, self.server, self.__token, method, data, files,
  57.   File "/home/akshin17/venv/lib/python3.8/site-packages/aiogram/bot/api.py", line 142, in make_request
  58.     raise exceptions.NetworkError(f"aiohttp client throws an error: {e.__class__.__name__}: {e}")
  59. aiogram.utils.exceptions.NetworkError: Aiohttp client throws an error: ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [Network is u
  60. nreachable]