@OmegaTortik

Почему запуск кода в PythonAnyWhere выдаёт ошибку?

У меня есть бот на питоне для дискорда, когда я пытаюсь его запустить на PythonAnyWhere выдаётся ошибка:
Traceback

Traceback (most recent call last):
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # 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 ('162.159.128.233', 443)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/SeaBitQ/main.py", line 432, in
bot.run(settings['token'])
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/discord/client.py", line 723, in run
return future.result()
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/discord/client.py", line 702, in runner
await self.start(*args, **kwargs)
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/discord/client.py", line 665, in start
await self.login(*args, bot=bot)
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/discord/client.py", line 511, in login
await self.http.static_login(token.strip(), bot=bot)
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/discord/http.py", line 300, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/discord/http.py", line 192, in request
async with self.__session.request(method, url, **kwargs) as r:
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/client.py", line 1117, in __aenter__
self._resp = await self._coro
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
raise last_exc
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/home/SeaBitQ/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 975, 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.128.233', 443)]
  • Вопрос задан
  • 147 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы