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

Internal Server Error 500 for Valid Sleep Days

Hello API Team,

 

We've been noticing issues with sleep pulled by individual days, mostly older year days returning 500 errors only IF there is sleep data in a given day. Example:

 

200 - No error (timeInBed = 0):

https://api.fitbit.com/1/user/-/sleep/date/2012-07-16.json

 

500 - Internal Server Error (timeInBed = 439)

https://api.fitbit.com/1/user/-/sleep/date/2012-07-17.json

 

You can test this with profile: 23FF77

Our logs show the issue going back at least a few weeks. Happy to send you our consumer key, Jeremiah knows how to get ahold of me.

 

Thanks,

--Aaron

Using Fitbits in Research? Check out Fitabase --www.fitabase.com
Best Answer
0 Votes
3 REPLIES 3

Thanks, Aaron. I've sent this to the appropriate team to investigate.

Best Answer
0 Votes

The issue has been identified. We hope to have the fix released by Monday. Thank you for the report!

Best Answer

Awesome response time, thanks @JeremiahFitbit !

--Aaron

Using Fitbits in Research? Check out Fitabase --www.fitabase.com
Best Answer
0 Votes