[Deluge] #3368: Viewing peers causes UnicodeDecodeErrors

2 views
Skip to first unread message

Deluge

unread,
Mar 25, 2020, 12:43:38 PM3/25/20
to delug...@googlegroups.com
#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

Deluge

unread,
Mar 25, 2020, 12:45:45 PM3/25/20
to delug...@googlegroups.com
#3368: Viewing peers causes UnicodeDecodeErrors
---------------------+------------------------------------------
Reporter: ga22be | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Core | Version: 2.0.3
Resolution: | Keywords: peer, UI, UnicodeDecodeError
---------------------+------------------------------------------

Comment (by ga22be):

Forgot to mention I'm running on Debian 10 and deluged, deluge-web, and
deluge-common are apt installed from unstable.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3368#comment:1>

Deluge

unread,
Mar 25, 2020, 12:55:40 PM3/25/20
to delug...@googlegroups.com
#3368: Viewing peers causes UnicodeDecodeErrors
---------------------+------------------------------------------
Reporter: ga22be | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Core | Version: 2.0.3
Resolution: | Keywords: peer, UI, UnicodeDecodeError
---------------------+------------------------------------------

Comment (by ga22be):

And as always with these things this has been reported before but I
couldn't find it until after making this report. I was only searching open
issues.

https://dev.deluge-torrent.org/ticket/3279

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3368#comment:2>

Deluge

unread,
Mar 26, 2020, 7:13:06 AM3/26/20
to delug...@googlegroups.com
#3368: Viewing peers causes UnicodeDecodeErrors
----------------------+------------------------------------------
Reporter: ga22be | Owner:
Type: bug | Status: new
Priority: trivial | Milestone: not applicable

Component: Core | Version: 2.0.3
Resolution: | Keywords: peer, UI, UnicodeDecodeError
----------------------+------------------------------------------
Changes (by ga22be):

* priority: minor => trivial
* milestone: needs verified => not applicable


--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3368#comment:4>

Deluge

unread,
Feb 20, 2021, 2:57:11 PM2/20/21
to delug...@googlegroups.com
#3368: Viewing peers causes UnicodeDecodeErrors
----------------------+------------------------------------------
Reporter: ga22be | Owner:
Type: bug | Status: closed
Priority: trivial | Milestone: 2.0.4
Component: Core | Version: 2.0.3
Resolution: Fixed | Keywords: peer, UI, UnicodeDecodeError
----------------------+------------------------------------------
Changes (by Cas):

* status: new => closed
* resolution: => Fixed
* milestone: not applicable => 2.0.4


--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3368#comment:5>

Reply all
Reply to author
Forward
0 new messages