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

Fitbit date queries outside a range of 3 years throw a 500 #119

Open
ezulo opened this issue May 7, 2019 · 0 comments
Open

Fitbit date queries outside a range of 3 years throw a 500 #119

ezulo opened this issue May 7, 2019 · 0 comments

Comments

@ezulo
Copy link

ezulo commented May 7, 2019

I'm making a call to the shimmer to retrieve some Fitbit data for a given user. However, I'm getting this error:

{"timestamp":"2019-05-07T14:03:08.842+0000","status":500,"error":"Internal Server Error","exception":"org.openmhealth.shim.ShimException","message":"org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.openmhealth.shim.ShimException: A request for Fitbit data has failed.","path":"/data/fitbit/step_count"}

when trying to query step count data for a user outside of a 3 year window. For example, requesting data with date queries of [2016-05-01, 2019-04-01] will return OMH data, but [2016-05-01, 2019-05-02] will fail with the above error.

Up to this point I hadn't been aware that there are any limits on date ranges. Is this expected behavior from the shimmer or a bug?

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

1 participant