Forums

Getting connection failed errors with asyncio

I m getting connection failed errors with asyncio. I m trying to deploy a project which is a discord bot.

Error message is as follows: aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discordapp.com:443...

The complete error message is aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discordapp.com:443 ssl:None [Connect call failed ('162.159.134.233', 443)]

Unfortunately the Python discord module won't work in a free account on PythonAnywhere. Free accounts have to connect to the external Internet using a proxy server, and the discord library uses a WebSockets library which can't handle proxies right now.

If you don't want to pay for a paid account, you can host your bot on repl.it

Unfortunately, you can no longer host bots on replit, I came here to try but I guess I cant use this site either :(

@PR0G4M3R In case of discord, unfortunately not with the free account.