UnicodeDecodeError when logging stdout/stderr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
satori |
New
|
Undecided
|
Unassigned |
Bug Description
The traceback provided is from here:
https:/
This error could potentially occur in these places:
https:/
https:/
Here's all of the information around the exception, starting with the traceback.
Traceback (most recent call last):
File "~/.virtualenvs
results[
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
hdlr.
File "/usr/lib/
self.
File "/usr/lib/
msg = self.format(record)
File "/usr/lib/
result = fmt.format(record)
File "/usr/lib/
record.message = record.getMessage()
File "/usr/lib/
msg = msg % self.args
UnicodeDecodeError: 'ascii' codec cant decode byte 0xe2 in position 334: ordinal not in range(128)
.
.
Exception instance attributes
=======
{'args': ('ascii',
'HTTP request sent, awaiting response... 200 OK'
'Length: 13203 (13K) [application/
'Saving to: “install.sh”'
' '
' '
334,
335,
'ordinal not in range(128)'),
'encoding': 'ascii',
'end': 335,
'message': '',
'object': '--2014-09-26 01:50:55-- http://
'reason': 'ordinal not in range(128)',
'start': 334}
I like this solution:
http:// stackoverflow. com/a/2365444/ 1547030