Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError 'url' when trying to add feed. #117

Open
DonkeyShoot opened this issue Oct 10, 2017 · 3 comments
Open

KeyError 'url' when trying to add feed. #117

DonkeyShoot opened this issue Oct 10, 2017 · 3 comments

Comments

@DonkeyShoot
Copy link

DonkeyShoot commented Oct 10, 2017

When trying to add a feed, I receive a keyError: 'url' error.

Stacktrace:

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__

    return self.wsgi_app(environ, start_response)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/tembozapp/server.py", line 50, in __call__

    return self.application(environ, start_response)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app

    response = self.handle_exception(e)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception

    reraise(exc_type, exc_value, tb)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app

    response = self.full_dispatch_request()

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request

    rv = self.handle_user_exception(e)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception

    reraise(exc_type, exc_value, tb)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request

    rv = self.dispatch_request()

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/tembozapp/server.py", line 546, in add_feed

    = update.add_feed(feed_xml)

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/tembozapp/update.py", line 115, in add_feed

    'xmlUrl': f['url'],

    File "/root/Projects/temboz/pythonenv/tembozdir/lib/python2.7/site-packages/tembozapp/feedparser.py", line 374, in __getitem__

    return dict.__getitem__(self, key)

    KeyError: 'url'

I've tried this with multiple feeds, including feeds from the me.opml file

@fazalmajid
Copy link
Owner

If you don’t mind sharing, what’s the feed URL you were trying to subscribe to?

@DonkeyShoot
Copy link
Author

DonkeyShoot commented Oct 16, 2017 via email

@fazalmajid
Copy link
Owner

fazalmajid commented Oct 20, 2017

I am assuming you followed the instructions and installed using virtualenv/pip. I hadn't updated the package on PyPI for a while, and clearly there were bugs in it that have since been fixed in git. I pushed a new version 2.1.0 of temboz to PyPI.

I reproduced your problem on my Mac using Temboz 2.0.0 and verified they are fixed in 2.1.0, please give it a try, and thanks for your interest in this software!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants