Да-да, я тот человек, который переспрашивает вопрос уже тысячный раз, понимаю, что данный вопрос завёлся ещё очень давно, но всё же я не увидел не в одной теме решения проблемы, неужели его нет? Ошибка, которую выводит PythonAnyWhere:
10:28 ~ $ python main.py
Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Bot.run_polling() done, defined at /home/drrsanYT/.local/lib/python3.9/site-packages/vkbottle/fra
mework/bot/bot.py:65> exception=ClientConnectorError(ConnectionKey(host='api.vk.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_aut
h=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('87.240.137.208', 443)"))>
Traceback (most recent call last):
File "/home/drrsanYT/.local/lib/python3.9/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 "/usr/local/lib/python3.9/asyncio/base_events.py", line 1056, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1041, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 955, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 502, in sock_connect
return await fut
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 537, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('87.240.137.208', 443)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/drrsanYT/.local/lib/python3.9/site-packages/vkbottle/framework/bot/bot.py", line 69, in run_polling
async for event in polling.listen():
File "/home/drrsanYT/.local/lib/python3.9/site-packages/vkbottle/polling/bot_polling.py", line 55, in listen
server = await self.get_server()
File "/home/drrsanYT/.local/lib/python3.9/site-packages/vkbottle/polling/bot_polling.py", line 49, in get_server
self.group_id = (await self.api.request("groups.getById", {}))["response"][0]["id"]
File "/home/drrsanYT/.local/lib/python3.9/site-packages/vkbottle/api/api.py", line 67, in request
response = await self.http_client.request_text(
File "/home/drrsanYT/.local/lib/python3.9/site-packages/vkbottle/http/aiohttp.py", line 58, in request_text
response = await self.request_raw(url, method, data, **kwargs)
File "/home/drrsanYT/.local/lib/python3.9/site-packages/vkbottle/http/aiohttp.py", line 43, in request_raw
async with self.session.request(url=url, method=method, data=data, **kwargs) as response:
File "/home/drrsanYT/.local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in __aenter__
self._resp = await self._coro
File "/home/drrsanYT/.local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request
conn = await self._connector.connect(
File "/home/drrsanYT/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/drrsanYT/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/drrsanYT/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
raise last_exc
File "/home/drrsanYT/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/home/drrsanYT/.local/lib/python3.9/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.vk.com:443 ssl:default [Connect call failed ('87.240.137.208', 44
3)]
Видел, как некоторые люди, которые пользуются данным хостингом как то заставляли всё работать, но как - так же не ясно. Мне остаётся надеяться, что мне ответит кто-нибудь с решением данной проблемы.