01-17-2021 09:14
01-17-2021 09:14
Hi,
When making a Sleep Log request we get this error - "Duration is out of bounds". It looks like a Sleep Log with a duration less than 10 minutes causes this error. Is that correct? Is 10 minutes the minimum duration for a sleep log?
Thanks,
Chris
Answered! Go to the Best Answer.
01-20-2021 09:13 - edited 01-20-2021 09:14
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-20-2021 09:13 - edited 01-20-2021 09:14
Hi @bickster
It looks like a sleep log needs to have a length between 10 and 1440 minutes. I tried to manually enter a sleep log through the web site and got this message.
We will make certain to include this requirement in the documentation.
Best Answer01-19-2021 11:27
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-19-2021 11:27
Hi @bickster
I'm not aware of a sleep duration less than 10 minutes causing a "duration out of bounds" error. Would you please post the endpoint that you're executing and the exact status code and error message that you're receiving?
Thanks!
Gordon
Best Answer01-19-2021 15:04
01-19-2021 15:04
Best Answer01-20-2021 09:13 - edited 01-20-2021 09:14
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-20-2021 09:13 - edited 01-20-2021 09:14
Hi @bickster
It looks like a sleep log needs to have a length between 10 and 1440 minutes. I tried to manually enter a sleep log through the web site and got this message.
We will make certain to include this requirement in the documentation.
Best Answer01-20-2021 15:22
01-20-2021 15:22
Best Answer