Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

api.feeds.get() fails if Feed metadata contains email address #28

Open
jdcockrill opened this issue Sep 28, 2013 · 3 comments
Open

api.feeds.get() fails if Feed metadata contains email address #28

jdcockrill opened this issue Sep 28, 2013 · 3 comments

Comments

@jdcockrill
Copy link

Using the Xively Raspberry Pi tutorial I created a feed on the workbench and tried to use the xively-python module to setup communication. In the Metadata section of my Feed, I entered my e-mail address.

When I tried

api.feeds.get(FEED_ID)

I received the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/xively/managers.py", line 266, in get
    feed = self._coerce_feed(data)
  File "/usr/local/lib/python2.7/dist-packages/xively/managers.py", line 289, in _coerce_feed
    feed = Feed(**feed_data)
TypeError: __init__() got an unexpected keyword argument 'email'

Thanks to a REST client for my browser, I did a bit of poking and found that if I requested the feed, there was an email element in the json that is returned. When I removed my e-mail address from the Feed Metadata (through the workbench) and re-ran api.feeds.get(FEED_ID) it worked just fine.

I don't know if you'd rather add support for that element (since it's on your website) or just put some handling in to bin keywords that aren't expected.

@maxheadroom
Copy link

I just faced the same problem. Strange that this hasn't been fixed yet.

@ronyef
Copy link

ronyef commented Aug 12, 2014

Hi, I've been puzzled for these past three days by this error. Finally you helped me out of staying up late every night.

Thanks Guys!

@dano
Copy link

dano commented Sep 12, 2014

Looks like this issue is fixed as of June 27th: c463ec5

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

No branches or pull requests

4 participants