Hi everyone,
Our team is running a project to get users' Fitbit data. The user needs to consent the Fitbit and go through the OAuth to give us the token. Recently, one of our users came across a 403 Forbidden error when she opened the authentication URL. However, there is only one case, other users can consent. I can't reproduce this problem. Does anyone get this problem and have any solution to it?
I saw a post that tried to remove the extension, however, I don't have it.
Thank you so much!
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.
Hi @yuhang
I've seen a few reasons why the 403 error occurs. Would you be able to share your complete authorization URL? I'll need to see the values you've entered, so please don't redact anything.
Thanks!
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.
Hi @yuhang
I've seen a few reasons why the 403 error occurs. Would you be able to share your complete authorization URL? I'll need to see the values you've entered, so please don't redact anything.
Thanks!
Best AnswerHi Gordon,
My complete authorizaiton URL is
Best AnswerHi, Gordon. We have the same issue in our app.
There is one reported issue when a person gets 403 using the authorization URL, but we have 900+ successfully connected people who haven't had any issues.
It appeared only recently. The last time we tried was on 6th Jan 2025. Our team couldn't reproduce the issue.
Below is our authorization URL (clientId masked):
https://www.fitbit.com/oauth2/authorize?client_id=XXXXX&redirect_uri=https%3A%2F%2Fasthma-prod-gcp-u...
Thanks!
Huma team.
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.
Hi @yuhang
When I click on your URL, the error return states
Developer information: invalid_request - The code_challenge parameter length must be between 43 and 128.
Your code challenge value is outside of that size range. Once you fix it, the problem should be resolved.
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.
Hi @HumaStuff
When I click on the URL, the state query parameter is missing the = sign and value. Would you please post the entire URL?
Best Answer