| Issue 69: | Once again a utf decode error (or is it still the same?), in sendAwayPresence | |
| Back to list |
Posted by daff at 2007-07-07 01:47:15
I've seen quite a few bugs posted here about utf8 decoding errors but they
apparently are not all the same, just with some common symptoms and error
messages.
Using Python 2.5, Twisted 2.5 and PyICQt 0.8a on Ubuntu 7.04.
The traceback follows, if needed I can also provide debugging output. This
happens when connecting to the transport. After the traceback output the
connection is not lost or reset but processing the ICQ users in the roster
seems
to stop and the transport appears offline to the client (using Psi 0.10),
although I can still query the transport for user info or disconnect.
Funny thing is I thought it was working fine already earlier this evening.
I saw
quite a few of the ICQ users on my roster online and the transport retrieved
their away messages automatically (something the old JIT never did, which
is one
more reason I want to be using PyICQt).
But now I can't seem to really become online/available via the transport any
more.
Hopefully this report was clear and concise enough to get some attention :) I'd
really like to at least know what the problem seems to be. A workaround or fix
would be even more appreciated :)
Thanks in advance.
[2007-07-07 03:04:44] Unhandled error in Deferred:
[2007-07-07 03:04:44] Traceback (most recent call last):
File "/usr/share/jabber-pyicq/src/tlib/oscar.py", line 647,
in dataReceived
state=func(flap)
File "/usr/share/jabber-pyicq/src/tlib/oscar.py", line 756,
in oscar_Data
d.callback(snac)
File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line
239, in callback
self._startRunCallbacks(result)
File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line
304, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line
317, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 330,
in sendAwayPresence
LogEvent(INFO, self.session.jabberID, "Away (%s, %s) message
%s" % (charset, msg[0], status))
exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0x8e in
position 19: unexpected code byte
Posted by guest at 2007-07-07 12:52:17
I could confirm this bug and I have here some Output from the option -D:
[2007-07-07 14:46:48] _cbGetAway [2, 6, 0, 0, 67L,
'\t313615908\x00\x00\x00\n\x00\x01\x00\x02\x00q\x00\x0c\x00%\x00\x00\x00\x00\x00
\x00\x00\x00\x04\x00\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x
00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00\x04\x00\x00\x00\x00\x00
\x06\x00\x04\x10\x01\x00\x11\x00\x08\x00\x02\n\x06\x00\x05\x00\x04?\x8e\x95\x15\
x00\r\x00\x90\x018\xca{v\x9aI\x15\x88\xf2\x13\xfc\x00\x97\x9e\xa8g6\x15\x15a-L\x
07\x8f=\xbd\xe6@\x8e\xa0A\x1a\t<l\xd7\xfdN\xc5\x9dQ\xa6GN4\xf5\xa0V?\xc8\t\x0
boA\xbd\x9fyB&\t\xdf\xa2\xf3\tF\x13CL\x7f\x11\xd1\x82"DEST\x00\x00\xb2\
xec\x8f\x16|oE\x1b\xbdy\xdcXIx\x88\xb9\tF\x13NL\x7f\x11\xd1\x82"DEST\x00\x0
0\x17\x8c-\x9b\xda\xa5E\xbb\x8d\xdb\xf3\xbd\xbdS\xa1\n\tF\x13IL\x7f\x11\xd1\x82&
quot;DEST\x00\x00\x00\x1d\x00\x14\x00\x01\x01\x10T\x1a<A\xe6E\xc5\xc1\x99|\x1
3\xdf\xb9\xa7\x99#\x00\x0f\x00\x04\x00\x00\'\x05\x00\x03\x00\x04F\x8fd7']
[2007-07-07 14:46:48] Unhandled error in Deferred:
[2007-07-07 14:46:48] Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/pyicq-t/src/tlib/oscar.py", line
647, in dataReceived
state=func(flap)
File
"/usr/lib/python2.4/site-packages/pyicq-t/src/tlib/oscar.py", line
756, in oscar_Data
d.callback(snac)
File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
229, in callback
self._startRunCallbacks(result)
File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
294, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
307, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File
"/usr/lib/python2.4/site-packages/pyicq-t/src/legacy/icqt.py", line
330, in sendAwayPresence
LogEvent(INFO, self.session.jabberID, "Away (%s, %s) message
%s" % (charset, msg[0], status))
exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0x8f in
position 19: unexpected code byte
Maybe somebody can find any possibility to catch such error.
Thanks
AlexanderS
Jan 19, 2008
Project Member
#1
d...@jabber.fsinf.de
Status:
Fixed
|