Я сделал бота для дискорт, запускал через start.bat все работало идиально хотел поставить на хостинг
https://www.pythonanywhere.com/ в bash установил нужные версии библиотеки, при запуске выводит ошибку то что проблема с подключением
19:44 ~/bot $ python bot.py
2023-10-02 19:46:21 INFO discord.client logging in using static token
Traceback (most recent call last):
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
return await fut
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('162.159.135.232', 443)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/Akmal009/bot/bot.py", line 277, in <module>
client.run("MTEzODE4NzUwNDc1NTkzMzIxNQ.G5xBI3.Fll4LNbBwvWblD4dmc7w-8gSxhUqj6w07w1NQ8")
File "/home/Akmal009/.local/lib/python3.10/site-packages/discord/client.py", line 860, in run
asyncio.run(runner())
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/Akmal009/.local/lib/python3.10/site-packages/discord/client.py", line 849, in runner
await self.start(token, reconnect=reconnect)
File "/home/Akmal009/.local/lib/python3.10/site-packages/discord/client.py", line 777, in start
await self.login(token)
File "/home/Akmal009/.local/lib/python3.10/site-packages/discord/client.py", line 612, in login
data = await self.http.static_login(token)
File "/home/Akmal009/.local/lib/python3.10/site-packages/discord/http.py", line 803, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/home/Akmal009/.local/lib/python3.10/site-packages/discord/http.py", line 625, in request
async with self.__session.request(method, url, **kwargs) as response:
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
raise last_exc
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/home/Akmal009/.local/lib/python3.10/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443 ssl:default [Connect call failed ('162.159.135.232', 443)]
Не могу понять где он не может подключиться или же заменить хостинг?