mspieth / rssdler

Automatically exported from code.google.com/p/rssdler
4 stars 0 forks source link

CRITICAL Unexpected Error #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems that rssdler crashes after a few days. The first days it works
good until:
It seems that rssdler crashes after a few days. The first days it works
good until:

20090125.09:00 DEBUG    testing cookieFile settings
20090125.09:00 DEBUG    no cookie file configured
20090125.09:00 DEBUG    building and installing mech opener without cookies
20090125.09:00 DEBUG    grabbing page at url
http://rss.torrentleech.org/rss.php?passkey=d34dc0d3b33f
20090125.09:01 CRITICAL Unexpected Error: Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/rssdler.py", line 2044, in main
    run()
  File "/opt/local/lib/python2.5/site-packages/rssdler.py", line 2016, in run
    rssparse(key)
  File "/opt/local/lib/python2.5/site-packages/rssdler.py", line 1871, in
rssparse
    pr = page.read()
  File "build/bdist.linux-ppc/egg/mechanize/_response.py", line 179, in read
    self.__cache.write(self.wrapped.read())
  File "/opt/lib/python2.5/socket.py", line 304, in read
    data = self._sock.recv(rbufsize)
  File "/opt/lib/python2.5/httplib.py", line 509, in read
    return self._read_chunked(amt)
  File "/opt/lib/python2.5/httplib.py", line 563, in _read_chunked
    value += self._safe_read(chunk_left)
  File "/opt/lib/python2.5/httplib.py", line 604, in _safe_read
    raise IncompleteRead(s)
IncompleteRead: ['ink>\n<description>\nCategory: Episodes/TV \n Size:
359.47 MB\n \nStatus: 187 seeders and 31 leechers \n Added: 2009-01-25
02:14:20 \n </description>\n</item>\n \n<item><title>Wolverine And The X
Men S01E15 DSR
XviD-TvT</title>\n<link>http://www.torrentleech.org/download_rss.php/133923/d3ad
c0d3b33f/Wolverine.And.The.X.Men.S01E15.DSR.XviD-TvT.torrent</link>\n<descriptio
n>\nCategory:
Episodes/TV \n Size: 183.43 MB\n \nStatus: 105 seeders and 17 leechers \n
Added: 2009-01-25 02:11:36 \n </description>\n</item>\n
\n<item><title>Rockwiz 24 01 2009 Adalita and Gareth Liddiard PDTV
XviD-W4F</title>\n<link>http://www.torrentleech.org/download_rss.php/133922/d3ad
c0d3b33f/Rockwiz.24.01.2009.Adalita.and.Gareth.Liddiard.PDTV.XviD-W4F.torrent</l
ink>\n<description>\nCategory:
Episodes/TV \n Size: 239.36 MB\n \nStatus: 5 seeders and 0 leechers \n
Added: 2009-01-25 02:00:13 \n </description>\n</item>\n \n<item><title>QI
XL S01E03 WS PDTV
XviD-WATERS</title>\n<link>http://www.torrentleech.org/download_rss.php/133921/d
3adc0d3b33f/QI.XL.S01E03.WS.PDTV.XviD-WATERS.torrent</link>\n<description>\nCate
gory:
Episodes/TV \n Size: 350.87 MB\n \nStatus: 17 seeders and 0 leechers \n
Added: 2009-01-25 01:52:30 \n </description>\n</item>\n
\n<item><title>Demons UK S01E04 WS PDTV
XviD-ORGANiC</title>\n<link>http://www.torrentleech.org/download_rss.php/133920/
d3adc0d3b33f/Demons.UK.S01E04.WS.PDTV.XviD-ORGANiC.torrent</link>\n<description>
\nCategory:
Episodes/TV \n Size: 358.37 MB\n \nStatus: 122 seeders and 16 leechers \n
Added: 2009-01-25 01:43:13 \n </description>\n</item>\n
\n<item><title>Legendary Assassin 2008 DVDRip
XviD-oZi</title>\n<link>http://www.torrentleech.org/download_rss.php/133919/d3ad
c0d3b33f/Legendary.Assassin.2008.DVDRip.XviD-oZi.torrent</link>\n<description>\n
Category:
Movies/XviD \n Size: 693.37 MB\n \nStatus: 211 seeders and 28 leechers \n
Added: 2009-01-25 01:38:05 \n </description>\n</item>\n
\n<item><title>Numb3rs S05E13 Trouble in Chinatown HDTV
XviD-FQM</title>\n<link>http://www.torrentleech.org/download_rss.php/133918/d3ad
c0d3b33f/Numb3rs.S05E13.Trouble.in.Chinatown.HDTV.XviD-FQM.torrent</link>\n<desc
ription>\nCategory:
Episodes/TV \n Size: 349.97 MB\n \nStatus: 156 seeders and 17 leechers \n
Added: 2009-01-25 01:09:52 \n </description>\n</item>\n
\n<item><title>Batman The Brave and The Bold S01E08 HDTV
XviD-SC-SDH</title>\n<link>http://www.torrentleech.org/download_rss.php/133917/d
3adc0d3b33f/Batman.The.Brave.and.The.Bold.S01E08.HDTV.XviD-SC-SDH.torrent</link>
\n<description>\nCategory:
Episodes/TV \n Size: 231.49 MB\n \nStatus: 38 seeders and 4 leechers \n
Added: 2009-01-25 01:03:55 \n </description>\n</item>\n \n<item><title>Zion
I-The Take
Over-2009-iND</title>\n<link>http://www.torrentleech.org/download_rss.php/133916
/d3adc0d3b33f/Zion_I-The_Take_Over-2009-iND.torrent</link>\n<description>\nCateg
ory:
Music \n Size: 64.13 MB\n \nStatus: 33 seeders and 0 leechers \n Added:
2009-01-25 01:02:16 \n </description>\n</item>\n \n<item><title>The
Wrestler DVDSCR DVDR CUSTOM PT
SUBS-K@T</title>\n<link>http://www.torrentleech.org/download_rss.php/133915/d3ad
c0d3b33f/The.Wrestler.DVDSCR.DVDR.CUSTOM.PT.SUBS-K@T.torrent</link>\n<descriptio
n>\nCategory:
Movies/DVD-R \n Size: 4.23 GB\n \nStatus: 39 seeders and 27 leechers \n
Added: 2009-01-25 00:56:41 \n </description>\n</item>\n
\n<item><title>College 2008 UNRATED MULTi NTSC
DVDR-d0wnz</title>\n<link>http://www.torrentleech.org/download_rss.php/133914/d3
adc0d3b33f/College.2008.UNRATED.MULTi.NTSC.DVDR-d0wnz.torrent</link>\n<descripti
on>\nCategory:
Movies/DVD-R \n Size: 4.46 GB\n \nStatus: 22 seeders and 17 leechers \n
Added: 2009-01-25 00:45:52 \n </description>\n</item>\n
\n<item><title>Midway Arcade Treasures 3 PS2DVD
NTSC-USA-ECHELON</title>\n<link>http://www.torrentleech.org/download_rss.php/133
913/d3adc0d3b33f/Midway
Arcade Treasures 3 PS2DVD
NTSC-USA-ECHELON.torrent</link>\n<description>\nCategory: Games/PS2 Retro
\n Size: 1.60 GB\n \nStatus: 12 seeders and 4 leechers \n Added: 2009-01-25
00:09:00 \n </description>\n</item>\n \n<item><title>Underworld 3 Rise Of
The Lycans CAM
XviD-cLeRKs</title>\n<link>http://www.torrentleech.org/download_rss.php/133912/d
3adc0d3b33f/Underworld.3.Rise.Of.The.Lycans.CAM.XviD-cLeRKs.torrent</link>\n<des
cription>\nCategory:
Movies/XviD \n Size: 756.14 MB\n \nStatus: 158 seeders and 52 leechers \n
Added: 2009-01-24 23:51:01 \n </description>\n</item>\n \n<item><title>0day
PACK
0124-TorrentLeech</title>\n<link>http://www.torrentleech.org/download_rss.php/10
\r\n\r\n']

passkey changed for security measures

Original issue reported on code.google.com by flx...@gmail.com on 28 Jan 2009 at 12:15

GoogleCodeExporter commented 9 years ago
Any word on this yet?

Thanks!

Original comment by flx...@gmail.com on 30 Jan 2009 at 10:45

GoogleCodeExporter commented 9 years ago
same issue.

Original comment by ddyssega...@gmail.com on 20 Mar 2009 at 11:21

GoogleCodeExporter commented 9 years ago
Assuming you're referring to the issue:
20090125.09:01 CRITICAL Unexpected Error: Traceback (most recent call last):

Looks like a problem with mechanize - maybe you should file an error report 
upstream,
to them?

Otherwise, you could possibly fix it by editing
/usr/lib/python2.5/site-packages/rssdler.py, and replacing 

    pr = page.read()

with

    try: pr = page.read()
    except: pr = None

Though it may cause more harm than not

Original comment by Edward.t...@gmail.com on 18 Jul 2009 at 6:21

GoogleCodeExporter commented 9 years ago
This seems to be an error upstream. i've added a try/except in r164 to prevent
rssdler from crashing when such an error is encountered.

Original comment by lostnihi...@gmail.com on 22 Aug 2009 at 7:58