#3368: Viewing peers causes UnicodeDecodeErrors
----------------------------+------------------------------------------
 Reporter:  ga22be          |       Type:  bug
   Status:  new             |   Priority:  minor
Milestone:  needs verified  |  Component:  Core
  Version:  2.0.3           |   Keywords:  peer, UI, UnicodeDecodeError
----------------------------+------------------------------------------
 When viewing peers in either GTK or web interface the daemon log spews
 {{{UnicodeDecodeError}}}
 when trying to decode "peer.client". For a while the interface still shows
 some peers. In the end the list is empty however. It seems that something
 fails silently. This creates a confusing situation where the torrent is
 still uploading but the peer list is empty. The peer counter still works
 however.

 Log as follows:

 {{{
 17:35:52 [ERROR   ][deluge.core.rpcserver         :1418] Exception calling
 RPC request: 'utf-8' codec can't decode byte 0xaa in position 8: invalid
 start byte
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line
 326, in dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 768, in
 get_torrent_status
     all_keys=not keys,
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 743, in
 create_torrent_status
     torrent_keys, diff, update=update, all_keys=all_keys
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1003,
 in get_status
     status_dict[key] = self.status_funcs[key]()
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 813,
 in get_peers
     client = decode_bytes(peer.client)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xaa in position 8:
 invalid start byte
 17:35:54 [WARNING ][deluge.core.rpcserver         :242 ] An exception
 occurred while sending RPC_ERROR to client. Wrapping it and resending.
 Error to send(causing exception goes next):
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line
 326, in dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 768, in
 get_torrent_status
     all_keys=not keys,
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 743, in
 create_torrent_status
     torrent_keys, diff, update=update, all_keys=all_keys
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1003,
 in get_status
     status_dict[key] = self.status_funcs[key]()
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 813,
 in get_peers
     client = decode_bytes(peer.client)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 11:
 invalid start byte

 17:35:54 [ERROR   ][deluge.core.rpcserver         :1418] Exception calling
 RPC request: 'utf-8' codec can't decode byte 0xa4 in position 11: invalid
 start byte
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line
 326, in dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 768, in
 get_torrent_status
     all_keys=not keys,
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 743, in
 create_torrent_status
     torrent_keys, diff, update=update, all_keys=all_keys
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1003,
 in get_status
     status_dict[key] = self.status_funcs[key]()
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 813,
 in get_peers
     client = decode_bytes(peer.client)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 11:
 invalid start byte
 17:35:56 [WARNING ][deluge.core.rpcserver         :242 ] An exception
 occurred while sending RPC_ERROR to client. Wrapping it and resending.
 Error to send(causing exception goes next):
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line
 326, in dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 768, in
 get_torrent_status
     all_keys=not keys,
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 743, in
 create_torrent_status
     torrent_keys, diff, update=update, all_keys=all_keys
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1003,
 in get_status
     status_dict[key] = self.status_funcs[key]()
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 813,
 in get_peers
     client = decode_bytes(peer.client)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 11:
 invalid start byte

 17:35:56 [ERROR   ][deluge.core.rpcserver         :1418] Exception calling
 RPC request: 'utf-8' codec can't decode byte 0xa4 in position 11: invalid
 start byte
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line
 326, in dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 768, in
 get_torrent_status
     all_keys=not keys,
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 743, in
 create_torrent_status
     torrent_keys, diff, update=update, all_keys=all_keys
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1003,
 in get_status
     status_dict[key] = self.status_funcs[key]()
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 813,
 in get_peers
     client = decode_bytes(peer.client)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 11:
 invalid start byte
 17:35:59 [WARNING ][deluge.core.rpcserver         :242 ] An exception
 occurred while sending RPC_ERROR to client. Wrapping it and resending.
 Error to send(causing exception goes next):
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line
 326, in dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 768, in
 get_torrent_status
     all_keys=not keys,
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 743, in
 create_torrent_status
     torrent_keys, diff, update=update, all_keys=all_keys
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1003,
 in get_status
     status_dict[key] = self.status_funcs[key]()
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 813,
 in get_peers
     client = decode_bytes(peer.client)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 11:
 invalid start byte

 17:35:59 [ERROR   ][deluge.core.rpcserver         :1418] Exception calling
 RPC request: 'utf-8' codec can't decode byte 0xa4 in position 11: invalid
 start byte
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line
 326, in dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 768, in
 get_torrent_status
     all_keys=not keys,
   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 743, in
 create_torrent_status
     torrent_keys, diff, update=update, all_keys=all_keys
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1003,
 in get_status
     status_dict[key] = self.status_funcs[key]()
   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 813,
 in get_peers
     client = decode_bytes(peer.client)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 11:
 invalid start byte
 }}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3368>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/045.57344dc618395507059478208827784e%40deluge-torrent.org.

Reply via email to