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

Invalid Client Error

ANSWERED

Hi,

 

I am trying to get Fitbit data however when I try to run my code I get an invalid client error. The error I get is as follows:

 

 Error Description

 

I hope someone can help me figure out what might be wrong. I have checked the client_id and it is exactly same as present online on the dev.fitbit.com/apps page for my application.

 

Regards,

Saksham

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I've been looking around for a solution and I found this on the orcasgit github site.

 

https://github.com/orcasgit/python-fitbit/issues/103

 

Would you please review and see if it addresses your problem?

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
0 Votes
9 REPLIES 9

Capture.PNG

Best Answer
0 Votes

Hi @goelx029,

 

Would you please provide me with the endpoint you're executing and the steps to reproduce this error message?

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi Gordon,

 

I have been using the following repository: https://github.com/orcasgit/python-fitbit as the fitbit api for my self. For reproducing this error, I am not sure what exactly are the steps because I am using my own fitbit app client id and client secret to get my sleep data.

 

 

endpoint.PNG

 

I hope this helps. If you need any more information I will be happy to provide you with it.

Best Answer
0 Votes

I've been looking around for a solution and I found this on the orcasgit github site.

 

https://github.com/orcasgit/python-fitbit/issues/103

 

Would you please review and see if it addresses your problem?

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi Gordon,

 

Thanks for everything. Turns out I was able to solve my issue by using a different version of the oauthlib and requests-oauth libraries as mentioned in some of the issues in the git repo.

Best Answer
0 Votes

Thanks for the update.   Another solution one of engineers discovered is to downgrade the version of the oauthlib library.  The versions of the library that worked are `requests-oauthlib == 1.1.0` and `oauthlib == 2.1.0`

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

I have the same issue when I try to setup my Fitbit with the ENBD Fitness App. 

What is the solution for this? 

Best Answer
0 Votes

How to down grade ?

Best Answer
0 Votes

Hi @GvenkatG 

 

The problem was related to the OAuth library.  This library is not maintained by Fitbit.   I'm assuming to downgrade the library version you would find an older version of the library and link it to your application.

 

Maybe someone else in the forums can provide more detailed information.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes