Failing to subscribe Hacker News #35

Closed
sublee opened this Issue Dec 31, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@sublee

sublee commented Dec 31, 2013

libearth failed to subscribe Hacker News. I attached the traceback and RSS document.

Traceback:

Traceback (most recent call last):
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/sublee/env/lib/python2.7/site-packages/earthreader/web/wsgi.py", line 59, in __call__
    return self.app(environ, start_response)
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/sublee/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/sublee/env/lib/python2.7/site-packages/earthreader/web/app.py", line 299, in add_feed
    stage.feeds[sub.feed_id] = feed
  File "/home/sublee/env/lib/python2.7/site-packages/libearth/stage.py", line 744, in __setitem__
    self.stage.write(key, doc)
  File "/home/sublee/env/lib/python2.7/site-packages/libearth/stage.py", line 345, in write
    repository.write(key, bytearray, _type_hint=type(document))
  File "/home/sublee/env/lib/python2.7/site-packages/libearth/stage.py", line 409, in write
    bytearray = b''.join(iterable)
  File "/home/sublee/env/lib/python2.7/site-packages/libearth/schema.py", line 1914, in export
    for chunk in subiter:
  File "/home/sublee/env/lib/python2.7/site-packages/libearth/schema.py", line 1797, in export
    validate(element, recurse=False, raise_error=True)
  File "/home/sublee/env/lib/python2.7/site-packages/libearth/schema.py", line 1715, in validate
    '{2!r} lacks it'.format(element_type, name, element)
IntegrityError: libearth.feed.Entry.updated_at is required, but <libearth.feed.Entry http://paulgraham.com/wids.html "What I Didn't Say"> lacks it

RSS:

<?xml version="1.0"?>
<rss version="2.0">
    <channel>
        <title>Hacker News</title>
        <link>https://news.ycombinator.com/</link>
        <description>Links for the intellectually curious, ranked by readers.</description>
        <item>
            <title>What I Didn't Say</title>
            <link>http://paulgraham.com/wids.html</link>
            <comments>https://news.ycombinator.com/item?id=6986797</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986797">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>The Disinformation</title>
            <link>http://uncrunched.com/2013/12/30/the-disinformation/</link>
            <comments>https://news.ycombinator.com/item?id=6987376</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6987376">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>About Python 3</title>
            <link>http://alexgaynor.net/2013/dec/30/about-python-3/</link>
            <comments>https://news.ycombinator.com/item?id=6985207</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6985207">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Don't want your laptop tampered with? Just add glitter nail polish</title>
            <link>http://www.wired.com/threatlevel/2013/12/better-data-security-nail-polish/</link>
            <comments>https://news.ycombinator.com/item?id=6986327</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986327">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Two years after quitting my job: 2013 in review</title>
            <link>http://nathanbarry.com/2013-review/</link>
            <comments>https://news.ycombinator.com/item?id=6986993</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986993">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>An Interview with Paul Graham: Hackers &amp; Painters 10 Years Later</title>
            <link>http://blog.onemonthrails.com/interview-paul-graham-hackers-and-painters-ten-years-later/</link>
            <comments>https://news.ycombinator.com/item?id=6987684</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6987684">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Haiku meets 9th processor</title>
            <link>https://www.haiku-os.org/blog/pawe%C5%82_dziepak/2013-12-20_haiku_meets_9th_processor</link>
            <comments>https://news.ycombinator.com/item?id=6987731</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6987731">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>DigitalHax &#x2013; Allows you to recover data from "Destroyed" Digital Ocean VM</title>
            <link>https://github.com/gregimba/DigitalHax</link>
            <comments>https://news.ycombinator.com/item?id=6988013</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6988013">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>MailChimp Annual Report</title>
            <link>http://mailchimp.com/2013/</link>
            <comments>https://news.ycombinator.com/item?id=6987857</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6987857">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>A Short Story for Engineers</title>
            <link>http://cs.txstate.edu/~br02/cs1428/ShortStoryForEngineers.htm</link>
            <comments>https://news.ycombinator.com/item?id=6985062</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6985062">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Show HN: Customizable themes for iOS</title>
            <link>https://www.apptemplatez.com/</link>
            <comments>https://news.ycombinator.com/item?id=6988142</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6988142">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>On The Information and How We Operate</title>
            <link>http://jessicalessin.com/2013/12/31/on-the-information-and-how-we-operate/</link>
            <comments>https://news.ycombinator.com/item?id=6988266</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6988266">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>We plan on not breaking code after Rust 1.0, except for gated features</title>
            <link>https://mail.mozilla.org/pipermail/rust-dev/2013-December/007588.html</link>
            <comments>https://news.ycombinator.com/item?id=6986330</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986330">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>I flew on a plane without going through security. It was amazing and no one died</title>
            <link>http://www.washingtonpost.com/blogs/wonkblog/wp/2013/12/30/i-flew-on-a-plane-without-going-through-security-it-was-amazing-and-no-one-died/</link>
            <comments>https://news.ycombinator.com/item?id=6986142</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986142">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>What's wrong with in-browser cryptography?</title>
            <link>http://tonyarcieri.com/whats-wrong-with-webcrypto</link>
            <comments>https://news.ycombinator.com/item?id=6986510</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986510">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Show HN: I made 30 apps this year and I'm 15</title>
            <link>http://www.aeipsapps.tumblr.com</link>
            <comments>https://news.ycombinator.com/item?id=6985700</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6985700">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Bored? Spend your summer building ML algos on top of $250M in transactional data</title>
            <link>http://freshplum.com/startupsummer/</link>
            <comments>https://news.ycombinator.com/item?id=6987936</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6987936">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>I Transcribed Glenn Greenwald's 30C3 Keynote</title>
            <link>https://github.com/poppingtonic/greenwald-30c3-keynote/</link>
            <comments>https://news.ycombinator.com/item?id=6984525</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6984525">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>ReconnectingWebSocket</title>
            <link>https://github.com/joewalnes/reconnecting-websocket/</link>
            <comments>https://news.ycombinator.com/item?id=6987027</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6987027">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>30C3 Recordings</title>
            <link>http://media.ccc.de/browse/congress/2013/</link>
            <comments>https://news.ycombinator.com/item?id=6984170</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6984170">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>ATF uses rogue tactics in storefront stings across nation</title>
            <link>http://www.jsonline.com/watchdog/watchdogreports/atf-uses-rogue-tactics-in-storefront-stings-across-the-nation-b99146765z1-234916641.html</link>
            <comments>https://news.ycombinator.com/item?id=6985717</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6985717">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Transparency Regarding Data Security</title>
            <link>https://www.digitalocean.com/blog_posts/transparency-regarding-data-security</link>
            <comments>https://news.ycombinator.com/item?id=6986155</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986155">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Show HN: I made 22 apps and games this year mostly by myself &#x2013; here they are</title>
            <link>http://davesapien.com/DaveSapien/2013DaveSapien.html</link>
            <comments>https://news.ycombinator.com/item?id=6984496</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6984496">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>DigitalOcean leaks customer data between VMs</title>
            <link>https://github.com/fog/fog/issues/2525</link>
            <comments>https://news.ycombinator.com/item?id=6983097</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6983097">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Cash machines robbed with infected USB sticks</title>
            <link>http://www.bbc.co.uk/news/technology-25550512</link>
            <comments>https://news.ycombinator.com/item?id=6984821</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6984821">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>In No One We Trust</title>
            <link>http://opinionator.blogs.nytimes.com/2013/12/21/in-no-one-we-trust/</link>
            <comments>https://news.ycombinator.com/item?id=6986328</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6986328">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>We&#x2019;re About to Lose Net Neutrality</title>
            <link>http://www.wired.com/opinion/2013/11/so-the-internets-about-to-lose-its-net-neutrality</link>
            <comments>https://news.ycombinator.com/item?id=6981843</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6981843">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>The TSP Isn't NP Complete</title>
            <link>https://www.ibm.com/developerworks/community/blogs/jfp/entry/no_the_tsp_isn_t_np_complete?lang=en</link>
            <comments>https://news.ycombinator.com/item?id=6985304</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6985304">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>I worked on the US drone program. The public should know what really goes on</title>
            <link>http://www.theguardian.com/commentisfree/2013/dec/29/drones-us-military</link>
            <comments>https://news.ycombinator.com/item?id=6979778</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6979778">Comments</a>]]>
            </description>
        </item>
        <item>
            <title>Garbage Collection in Ruby 2.1</title>
            <link>http://tmm1.net/ruby21-rgengc/</link>
            <comments>https://news.ycombinator.com/item?id=6983796</comments>
            <description>
                <![CDATA[<a href="https://news.ycombinator.com/item?id=6983796">Comments</a>]]>
            </description>
        </item>
    </channel>
</rss>

@dahlia dahlia closed this in 0974c82 Jan 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment