#4678 Error in blog external feed processing

v1.0.0
closed
sf-2 (994)
General
Cory Johns
2015-08-20
2012-08-08
No

Error below. We need to log the URL attempted when errors occur. Possibly one of hibernate's feeds, which aren't processing right now.

  File "/var/local/allura/ForgeBlog/forgeblog/command/rssfeeds.py", line 139, in command
    self.process_feed(appid, feed_url)
  File "/var/local/allura/ForgeBlog/forgeblog/command/rssfeeds.py", line 191, in process_feed
    updated = datetime.utcfromtimestamp(mktime(e.updated_parsed))
  File "/var/local/env-allura/lib/python2.7/site-packages/feedparser-5.0.1-py2.7.egg/feedparser.py", line 356, in __getattr__
    raise AttributeError, "object has no attribute '%s'" % key
AttributeError: object has no attribute 'updated_parsed'

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-08-08
    • milestone: forge-backlog --> forge-aug-24
     
  • Anonymous - 2012-08-08

    Originally by: steveebersole

    Now we are getting a 500 error on another feed: https://sourceforge.net/p/hibernate/stackoverflow/

     
  • Dave Brondsema

    Dave Brondsema - 2012-08-10
    • size: --> 2
     
    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
    • status: in-progress --> code-review
    • qa: Cory Johns
     
  • forge:tv/4678

    Install blog tool and setup some external feeds. I used:

    To simulate an error condition you can put an assert False inside process_feed() and/or process_entry() in ForgeBlog/forgeblog/command/rssfeeds.py.

    Then, while tailing /var/log/allura/allura.log, run:

    cd /var/local/allura/ForgeBlog
    paster pull-rss-feeds ../Allura/production.ini
    

    The process should log any exceptions, but continue processing all feeds/entries.

     
  • Dave Brondsema

    Dave Brondsema - 2012-08-14

    FYI https://sourceforge.net/p/hibernate/stackoverflow/ is currently pulling feeds correctly.

     
  • Cory Johns - 2012-08-15
    • status: code-review --> closed
     
  • Anonymous - 2012-08-15

    Originally by: steveebersole

    https://sourceforge.net/p/hibernate/blogtest/ is still not pulling the defined feed. Should I open a separate issue for that?

     

Log in to post a comment.