Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Pythonista 3 error on iPadOS: cannot connect to host discord.com:443 ssl=True
-
@JonB thanks for the quick reply, I'll try that
Edit: didn't work. do you have any other ideas? -
OK, I looked at the issue you sent, and that's a different error. This one is hostname doesn't match, and the other one is certificate expired... 🤔
-
It is still a certificate error. -- did you try the change in http.py? You will need to force quit pythonista and try again
-
@JonB yes I tried, but nothing happened
-
Can you post your full traceback?
-
@JonB Sure
-
-
Going back to version 1.5.0 fixed it for me, seems like pythonista just doesn’t like 1.5.1 for some reason
-
You could also try (before importing discord -- need to restart pythonista then try this)
import ssl ssl.match_hostname = lambda cert, hostname: True
For some reason, ssl.match_hostname is being called with 'IP-ADDRESS' instead of an actual hostname. I'm not sure where that is coming from exactly, I guess the underlying _sslobj from OpenSSL. Pythonista uses an old OpenSSL version iirc, so this could explain it maybe.
-
@JonB I can't thank you enough, I got Pythonista 3 mainly for this and now it works!!!