pyHoNBot icon indicating copy to clipboard operation
pyHoNBot copied to clipboard

broken with patch 3.9

Open dontgitit opened this issue 8 years ago • 3 comments

error: uncaptured python exception, closing channel <bot.Bot connected xxxxxxxx:xxxxxx at 0x319fe88> (<type 'exceptions.UnicodeDecodeError'>:'utf8' codec can't decode byte 0x86 in position 0: invalid start byte [C:\python27\lib\asyncore.py|read|83] [C:\python27\lib\asyncore.py|handle_read_event|4 49] [C:\python27\lib\asynchat.py|handle_read|147] [C:\Users\Ilya\Code\pyHoNBot\bot.py|found_terminator|102] [C:\Users\Ilya\Code\pyHoNBot\bot.py|dispat ch|454] [C:\Users\Ilya\Code\pyHoNBot\hon\packets.py|parse_packet|279] [C:\Users\Ilya\Code\pyHoNBot\hon\packets.py|parse_channel_join|137] [C:\Users\Il ya\Code\pyHoNBot\hon\packets.py|parse_part|261] [C:\python27\lib\encodings\utf_8.py|decode|16])

dontgitit avatar Apr 20 '16 10:04 dontgitit

Indeed - seems not to be working. Mine just tries to reconnect all the time.

bishonen avatar May 21 '16 15:05 bishonen

(<class 'struct.error'>, error('unpack requires a string argument of length 42',)) <traceback object at 0x06BA5558> (<class 'struct.error'>, error('unpack requires a string argument of length 42',), <traceback object at 0x06BA5558>)

exbit avatar Aug 15 '16 01:08 exbit

Changing this line on "hon/packets.py" worked for me:

res.append(data[:i].decode("utf-8"))
to:
res.append(data[:i].decode("ISO-8859-1"))

xtcp avatar Jan 13 '17 17:01 xtcp