@Penguin-Master said:
I'm coding a Discord.py bot in python and I'm trying to move to pythonista but getting this error and i haven't found anyone else with this error on pythonista:
ssl.CertificateError: hostname 'IP-ADDRESS' doesn't match either of 'ssl764977.cloudflaressl.com', '*.discord.com', 'discord.com'
please help me with this as i spent $15 on this and would really like to be able to use it. Thank you!
Looks like this is an issue with discord's certificate -- they are using an untrusted root certificate.
https://github.com/Rapptz/discord.py/issues/4159
On iOS, I believe you can down a cert offline, email it to yourself, and install as a trusted root.
Alternatively, you can disable SSL cert checks if you modify http.py :
async def get_from_cdn(self, url):
async with self.__session.get(url) as resp:
```
Change to
async def get_from_cdn(self, url):
async with self.__session.get(url, ssl=False) as resp:
```
Dangerous, but I guess you are just risking trusting a fake discord server, it is not like you are sharing your bank info via discord.
There may be ways to go to discord.com in safari and down the certificate directly, but I'm not sure.