Ticket #980 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

error fectching a source with more than one rss feed

Reported by: remi Owned by: kovidgoyal
Priority: minor Milestone: 0.6.0
Component: feeds2lrf Version: trunk
Keywords: Cc:

Description

I have a feed with 6 rss feed. The problem is one of these rss stop the process, the other rss are not fetched. Is it possible to make the fectching process more robust, and just warning about the rss doesn't work? It may be usefull when a rss suddenly can not be fetched without error, or is temporary unavailable.

Best regard Remi

--- error message with rss http://www.rue89.com/homepage/feed which was working before.

('Unicode Decode Error?', u"'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128)"): Traceback: Traceback (most recent call last):

File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/parallel.py", line 760, in worker

result = work(client_socket, func, args, kwdargs)

File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/parallel.py", line 729, in work

res = func(*args, **kargs)

File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/lrf/feeds/convert_from.py", line 42, in main

recipe = run_recipe(opts, recipe_arg, parser, notification=notification, handler=handler)

File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/web/feeds/main.py", line 114, in run_recipe

recipe.download()

File "calibre/web/feeds/news.pyo", line 473, in download File "calibre/web/feeds/news.pyo", line 586, in build_index File "calibre/web/feeds/news.pyo", line 785, in parse_feeds File "calibre/web/feeds/init.pyo", line 176, in feed_from_xml File "calibre/web/feeds/feedparser.pyo", line 2620, in parse File "calibre/web/feeds/feedparser.pyo", line 1438, in feed File "sgmllib.pyo", line 99, in feed File "sgmllib.pyo", line 138, in goahead File "sgmllib.pyo", line 315, in parse_endtag File "sgmllib.pyo", line 355, in finish_endtag File "calibre/web/feeds/feedparser.pyo", line 473, in unknown_endtag File "calibre/web/feeds/feedparser.pyo", line 1214, in _end_description File "calibre/web/feeds/feedparser.pyo", line 697, in popContent File "calibre/web/feeds/feedparser.pyo", line 638, in pop File "calibre/web/feeds/feedparser.pyo", line 1591, in _resolveRelativeURIs File "calibre/web/feeds/feedparser.pyo", line 1438, in feed File "sgmllib.pyo", line 99, in feed File "sgmllib.pyo", line 133, in goahead File "sgmllib.pyo", line 285, in parse_starttag

Unicode Decode Error?: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128) Log:

Change History

follow-up: ↓ 2   Changed 3 months ago by kovidgoyal

That feed works for me, what OS are you on?

in reply to: ↑ 1 ; follow-up: ↓ 3   Changed 3 months ago by remi

Replying to kovidgoyal:

That feed works for me, what OS are you on?

I am on Mac OS 10.4.11

in reply to: ↑ 2   Changed 3 months ago by remi

Replying to remi:

Replying to kovidgoyal:

That feed works for me, what OS are you on?

I am on Mac OS 10.4.11

In fact, it seems that calibre download the data of rss during 10-15 seconde, and it failed after, maybe during html2lrf conversion??

Something else i have also just noticed , fetching source with multi rss: the size of lrf is 2.9Mb and i can view it with calibre viewer without problem, but it reboot the PRS-505 opening the file. Since PRS-505 now read epub, it may be more efficient (if the problem is due to large/complex file)

Best regard Rémi

  Changed 3 months ago by kovidgoyal

  • status changed from new to closed
  • resolution set to fixed

Fixed in branch calibre:kovid. The fix will be in the next release.

Note: See TracTickets for help on using tickets.