Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sleep List Endpoint Returns Empty JSON

ANSWERED

We are now seeing the same issue with Sleep requests that we did with Water requests. Using the https://api.fitbit.com/1.2/user/-/sleep/list.json endpoint it returns an empty JSON response.

I cannot reproduce the issue with my accounts, but there are many users that are having this issue. The users that we've talked with are using either Versa 2 or Inspire 3. We are continuing to debug the issue, but any help from the community or Fitbit would be greatly appreciated. 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Issue resolved. The sleep array in the response was never mentioned as optional in the documentation. https://dev.fitbit.com/build/reference/web-api/sleep/get-sleep-log-list/ We were expecting a empty sleep array not just the pagination node.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

Issue resolved. The sleep array in the response was never mentioned as optional in the documentation. https://dev.fitbit.com/build/reference/web-api/sleep/get-sleep-log-list/ We were expecting a empty sleep array not just the pagination node.

Best Answer
0 Votes