Page 2 of 2

Re: Can't get file list and other stuff from remote deluge

Posted: Fri Aug 12, 2011 1:38 pm
by belegnar
This code in client.py

Code: Select all

            dobj = zlib.decompressobj()
            try:
                request = rencode.loads(dobj.decompress(data))
            except Exception, e:
                #log.debug("Received possible invalid message (%r): %s", data, e)
raises UnicodeEncodeError

I can't provide full error message because, when uncommented, it puts about 3M of data to the terminal.

Re: Can't get file list and other stuff from remote deluge

Posted: Fri Aug 12, 2011 2:26 pm
by Cas
That's not enough information, we need to see the actual error not an interpretation. Can you post the 20-30 lines that surround the UnicodeEncodeError.

Just to add, you can redirect console errors to file.

Re: Can't get file list and other stuff from remote deluge

Posted: Fri Aug 12, 2011 3:04 pm
by belegnar
data consits of all torrents available, about 3Mb of data, about two hundreds of torrents. And i can't clarify wich of them brings error.
I just saw the error in pdb. Maybe it is possible to reorganize module logic in a way, when data processed by parts, a part for a torrent, for example.