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.
Answered! Go to the Best Answer.
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 AnswerIssue 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