-
Notifications
You must be signed in to change notification settings - Fork 326
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
Comments
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. |
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: |
@brad: I am consistently getting "HTTPUnauthorized: Invalid signature" error on subscription api. Did you figure out the cause? Thanks. |
Sorry @manobal I haven't looked into this yet, so I don't know the cause. |
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'
The text was updated successfully, but these errors were encountered: