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

intermittent connection & http errors #34

Open
rinchen opened this issue May 11, 2014 · 0 comments
Open

intermittent connection & http errors #34

rinchen opened this issue May 11, 2014 · 0 comments

Comments

@rinchen
Copy link

rinchen commented May 11, 2014

Hi,

My stream is having issues updating Xively and I'm hoping someone more experienced can point out a fix.

https://xively.com/feeds/30643/workbench

I'm getting:
Xively error: class requests.exceptions.ConnectionError
Xively error: class requests.exceptions.HTTPError

It does update from time to time so it's not a permissions issue as far as I can tell:
200 PUT feed 10:56:33 -0600
200 PUT feed 10:55:33 -0600
200 PUT feed 10:54:33 -0600
200 PUT feed 10:53:32 -0600

The relevant code from https://github.com/rinchen/radmon/blob/master/twitpachrad.py is:

x_api = xively.XivelyAPIClient(X_API_KEY)
x_feed = x_api.feeds.get(X_FEED_ID)

try:
x_feed.datastreams = [
xively.Datastream(id='CPM',
current_value=message[0]),
xively.Datastream(id='USV',
current_value=message[1]),
xively.Datastream(id='USVAVG',
current_value=message[2]),
xively.Datastream(id='X',
current_value=message[3]),
]
x_feed.update()
except:
print "Xively error: %s" % (sys.exc_info()[0])

Hoping that someone can spot something obvious. I'm running on the latest github code. I'm very happy to put in debugging of any sort.

Thanks!

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

1 participant