Following the above guide I attempted to implement subscriptions but, I keep getting the following error:
Answered! Go to the Best Answer.
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.
@WeFitterTech Thanks for confirming that information.
Your request appears to be missing the content-length header and this is required as per the documentation. Can you confirm you're including the size of the payload body?
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.
Sorry to hear that you're encountering this error.
Can you post your full HTTP message that you're requesting here? I need to see the endpoint, headers, and body of your request. I also want to know the error status code you're receiving. Please also PM me your Client ID (as it is sensitive).
Thanks!
The endpoint: https://api.fitbit.com/1/user/-/body/apiSubscriptions/B7JJT6-body.json
The header contains the Bearer token and the body is empty. I also sent the client ID in a PM.
Thanks for your reply!
Best Answer
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.
@WeFitterTech Thanks for confirming that information.
Your request appears to be missing the content-length header and this is required as per the documentation. Can you confirm you're including the size of the payload body?
That seems to be the solution, I must have missed that. Thank you so much for the support!
Best Answer