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

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

@jdcockrill

Description

@jdcockrill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions