I was running my discord.py bot locally and got this error
raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError:
Cannot connect to host discordapp.com:443 ssl:None [Connect call failed ('162.159.133.233', 443)]
I am using my campus network with proxy to run the bot. So what is the reason?
client = commands.Bot(command_prefix=getPrefix,case_insensitive = True)
client.remove_command('help')
@client.event
async def on_ready():
await client.change_presence(status=discord.Status.online,activity=discord.Game(name='RPG Help at >help'))
print('Logged in')
print('...')
client.run('TOKEN')
I think there is no problem with my code, as when I run this using mobile data it works fine, but the error occurs only with my institute network.