PythonAnywhere Forums

I cannot connect to one of the whitelisted websites!!

it is discordapp.com. When I try to use the discord module it works fine until i try to use the client.run() function to make it connect to discord. I get this

"aiohttp.errors.ClientOSError: [Errno 111] Cannot connect to host discordapp.com:443 ssl:True [Can not connect to discordapp.com:443 [Connect call fa iled ('104.16.58.5', 443)]]"

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Do you have code to use a ProxyConnector in your Discord connection setup? For example:

proxy = aiohttp.ProxyConnector(proxy="http://proxy.server:3128")
client = discord.Client(connector=proxy)