XZise added a comment.
Uh … great that Python 3 doesn't work :( Do you mean with “ASCII string” that `the_string.encode('ascii')` does not fail? Also your other traceback isn't very helpful either as there is no HTTP layer present (it's in another thread) :( .
And I don't think https://phabricator.wikimedia.org/rPWBCd798da349087d231d9dad203cd6b48a1aea03... fixed your issue (I at least couldn't explain why).
TASK DETAIL https://phabricator.wikimedia.org/T99366
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: zhuyifei1999, XZise Cc: XZise, Aklapper, zhuyifei1999, jayvdb, pywikipedia-bugs