Created
May 15, 2017 03:25
-
-
Save RoyXiang/70b929280641b0a6244adf686188adaf to your computer and use it in GitHub Desktop.
Revisions
-
RoyXiang created this gist
May 15, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ 2017-05-15 02:33:42,250: telegram.ext.dispatcher [ERROR] An uncaught error was raised while processing the update Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/telegram/ext/dispatcher.py", line 270, in process_update handler.handle_update(update, self) File "/usr/lib/python3.6/site-packages/telegram/ext/messagehandler.py", line 123, in handle_update return self.callback(dispatcher.bot, update, **optional_args) File "/root/ehForwarderBot/plugins/eh_telegram_master/__init__.py", line 1130, in msg return self.process_telegram_message(bot, update) File "/root/ehForwarderBot/plugins/eh_telegram_master/__init__.py", line 1308, in process_telegram_message m.path, m.mime = self._download_file(update.message, update.message.document, m.type) File "/root/ehForwarderBot/plugins/eh_telegram_master/__init__.py", line 1385, in _download_file f.download(fullpath) File "/usr/lib/python3.6/site-packages/telegram/file.py", line 81, in download self.bot.request.download(url, filename) File "/usr/lib/python3.6/site-packages/telegram/utils/request.py", line 221, in download buf = self._request_wrapper('GET', url) File "/usr/lib/python3.6/site-packages/telegram/utils/request.py", line 132, in _request_wrapper resp = self._con_pool.request(*args, **kwargs) File "/usr/lib/python3.6/site-packages/urllib3/request.py", line 66, in request **urlopen_kw) File "/usr/lib/python3.6/site-packages/urllib3/request.py", line 87, in request_encode_url return self.urlopen(method, url, **extra_kw) File "/usr/lib/python3.6/site-packages/urllib3/poolmanager.py", line 244, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 356, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1250, in _send_request self.putrequest(method, url, **skips) File "/usr/lib/python3.6/http/client.py", line 1117, in putrequest self._output(request.encode('ascii')) UnicodeEncodeError: 'ascii' codec can't encode character '\u5e74' in position 73: ordinal not in range(128)