zhuyifei1999 added a comment.
Ok I added a traceback.print_exc() to https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/comms/thre... and got this:
Traceback (most recent call last): File "/data/project/yifeibot/pywikibot/pywikibot/comms/threadedhttp.py", line 221, in request max_redirects, connection_type File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1569, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1316, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1252, in _conn_request conn.request(method, request_uri, body, headers) File "/usr/lib/python2.7/httplib.py", line 973, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 969, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 827, in _send_output msg += message_body UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 1872: ordinal not in range(128) ERROR: Traceback (most recent call last): File "/data/project/yifeibot/pywikibot/pywikibot/data/api.py", line 1556, in submit body=body, headers=headers) File "/data/project/yifeibot/pywikibot/pywikibot/tools/__init__.py", line 1094, in wrapper return obj(*__args, **__kw) File "/data/project/yifeibot/pywikibot/pywikibot/comms/http.py", line 279, in request r = fetch(baseuri, method, body, headers, **kwargs) File "/data/project/yifeibot/pywikibot/pywikibot/comms/http.py", line 381, in fetch error_handling_callback(request) File "/data/project/yifeibot/pywikibot/pywikibot/comms/http.py", line 297, in error_handling_callback raise request.data UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 1872: ordinal not in range(128)
WARNING: Waiting 5 seconds before retrying.
TASK DETAIL https://phabricator.wikimedia.org/T99366
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: zhuyifei1999 Cc: XZise, Aklapper, zhuyifei1999, jayvdb, pywikipedia-bugs