network utf8 decode error

Bug #560973 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Low
Stefano Rivera

Bug Description

Event: {'account': None, 'responses': [], 'source': u'shadowfire', 'addressed': u'tibid', 'processed': False, 'time': datetime.datetime(2010, 4, 10, 22, 11, 53, 439284), 'identity': 1250, 'message': {'raw': u'tibid: get http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=snapshot;h=refs/heads/master;sf=tgz', 'deaddressed': u'get http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=snapshot;h=refs/heads/master;sf=tgz', 'clean': u'get http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=snapshot;h=refs/heads/master;sf=tgz', 'stripped': u'tibid: get http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=snapshot;h=refs/heads/master;sf=tgz'}, 'type': u'message', 'public': True, 'channel': u'#algorithm', 'sender': {'nick': u'Vaughan', 'connection': u'Vaughan!~<email address hidden>', 'id': u'Vaughan'}}
Traceback (most recent call last):
  File "/home/stefanor/projects/ibid/tibid/ibid/core.py", line 32, in _process
    processor.process(event)
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/__init__.py", line 144, in process
    method(event, *match.groups())
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/network.py", line 253, in get
    action.upper())
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/network.py", line 410, in _request
    return response.status, response.reason, data.decode(charset), \
  File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: unexpected code byte

Related branches

Revision history for this message
Stefano Rivera (stefanor) wrote :

Yeah, it's a case of trying to decode everything as utf-8

Changed in ibid:
assignee: nobody → Stefano Rivera (stefanor)
importance: Undecided → Low
milestone: none → 0.1.1
status: New → In Progress
Changed in ibid:
status: In Progress → Fix Committed
Changed in ibid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.