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

Time series acting strange? #40

Open
heinzehavinga opened this issue Sep 24, 2014 · 4 comments
Open

Time series acting strange? #40

heinzehavinga opened this issue Sep 24, 2014 · 4 comments

Comments

@heinzehavinga
Copy link

So the library seems to work great, but as soon as I try to call on time_series the authorisation seems to act up. Other calls don't seem to create this problem. I created user token using gather_keys_cli but the tokens the error returns aren't mine so i would assume these are incorrect created signatures instead of token?

print authd_client.time_series('/activities/steps/',period='7d')
File "/Users/heinzehavinga/Desktop/scraper/scraperNew/fitbit/api.py", line 363, in time_series
return self.make_request(url)
File "/Users/heinzehavinga/Desktop/scraper/scraperNew/fitbit/api.py", line 198, in make_request
response = self.client.make_request(_args, *_kwargs)
File "/Users/heinzehavinga/Desktop/scraper/scraperNew/fitbit/api.py", line 80, in make_request
raise HTTPUnauthorized(response)
fitbit.exceptions.HTTPUnauthorized: Invalid signature or token 'XXXXXXXXXXXXXX' or token 'YYYYYYYYYYYYYYY'

@brad
Copy link
Member

brad commented Sep 24, 2014

Are you getting this on every time series api call, or just sometimes? I've seen this intermittently on subscription API call, and still trying to understand the cause.

@ciaranmccormick
Copy link

I'm also getting this issue for example the auth_client.sleep() returns successfully, however auth_client.time_series('/activities/steps/', period='1d') returns HTTPUnauthorized exception.

Edit:
Using 'activities/steps' instead of '/activities/steps/' results in the request to be successful.

@manobal
Copy link

manobal commented Dec 8, 2014

@brad: I am consistently getting "HTTPUnauthorized: Invalid signature" error on subscription api. Did you figure out the cause? Thanks.

@brad
Copy link
Member

brad commented Dec 8, 2014

Sorry @manobal I haven't looked into this yet, so I don't know the cause.

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

4 participants