Page 1 of 1

1.3.0 gives "unexpected code byte" on several torrents

Posted: Wed Oct 27, 2010 6:58 pm
by jwhite530
I have several torrents which Deluge refuses to open, but work fine in Transmission and uTorrent. I'm not sure why this is or if there is a way to fix it, any ideas?

The only work around I have is to use a different torrent program. Not exactly ideal.

Deluged: 1.3.0
Deluge-web: 1.3.0
Host: Ubuntu Server 10.04 x64
Browser: Chrome 5.0.375.28 dev
libtorrent: No idea how to check the version.

Here is the relevant portion of the log:

Code: Select all

[DEBUG   ] 14:30:31 server:156 uploading files to /tmp/delugeweb-X5Q7xM
[DEBUG   ] 14:30:31 server:164 uploaded 1 file(s)
[DEBUG   ] 14:30:31 json_api:249 json-request: {"method":"web.get_torrent_info","params":["/tmp/delugeweb-X5Q7xM/tmpn7Ukhp.torrent"],"id":161}
[DEBUG   ] 14:30:31 common:103 Attempting to open /tmp/delugeweb-X5Q7xM/tmpn7Ukhp.torrent.
[ERROR   ] 14:30:31 json_api:265 'utf8' codec can't decode byte 0xa9 in position 0: unexpected code byte
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/json_api.py", line 287, in render
    d = self._on_json_request(request)
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/json_api.py", line 259, in _on_json_request
    return self._send_response(request, response)
  File "/usr/lib/pymodules/python2.6/deluge/ui/web/json_api.py", line 270, in _send_response
    response = json.dumps(response)
  File "/usr/lib/python2.6/json/__init__.py", line 230, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python2.6/json/encoder.py", line 367, in encode
    chunks = list(self.iterencode(o))
  File "/usr/lib/python2.6/json/encoder.py", line 309, in _iterencode
    for chunk in self._iterencode_dict(o, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 275, in _iterencode_dict
    for chunk in self._iterencode(value, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 309, in _iterencode
    for chunk in self._iterencode_dict(o, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 275, in _iterencode_dict
    for chunk in self._iterencode(value, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 309, in _iterencode
    for chunk in self._iterencode_dict(o, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 275, in _iterencode_dict
    for chunk in self._iterencode(value, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 309, in _iterencode
    for chunk in self._iterencode_dict(o, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 275, in _iterencode_dict
    for chunk in self._iterencode(value, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 309, in _iterencode
    for chunk in self._iterencode_dict(o, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 275, in _iterencode_dict
    for chunk in self._iterencode(value, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 309, in _iterencode
    for chunk in self._iterencode_dict(o, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 275, in _iterencode_dict
    for chunk in self._iterencode(value, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 309, in _iterencode
    for chunk in self._iterencode_dict(o, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 275, in _iterencode_dict
    for chunk in self._iterencode(value, markers):
  File "/usr/lib/python2.6/json/encoder.py", line 294, in _iterencode
    yield encoder(o)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position 0: unexpected code byte

Re: 1.3.0 gives "unexpected code byte" on several torrents

Posted: Sun Dec 19, 2010 3:04 pm
by smbody
In 1.3.1 I have same problem. Please help!

Re: 1.3.0 gives "unexpected code byte" on several torrents

Posted: Sun Dec 19, 2010 3:22 pm
by Cas
From the logs I assume you are using the webui to add the torrent, have you tried adding it using other clients?

Re: 1.3.0 gives "unexpected code byte" on several torrents

Posted: Thu Dec 23, 2010 8:06 am
by smbody
I tried to using console and all the added without problem. Thank you!

Use the console is not very comfortable going to hope that will make the necessary corrections in the WEB UI.

Re: 1.3.0 gives "unexpected code byte" on several torrents

Posted: Thu Dec 23, 2010 1:05 pm
by Cas
If you could create a bug ticket that would be helpful. If possible supply details of the torrent causing the issue.

Instead of using console you could setup thinclient access and use the GTK client to connect to your server.