02-18-2019 11:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-18-2019 11:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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:
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
Answered! Go to the Best Answer.
Accepted Solutions
02-22-2019 06:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-22-2019 06:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-18-2019 11:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-19-2019 11:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-19-2019 11:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @goelx029,
Would you please provide me with the endpoint you're executing and the steps to reproduce this error message?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-21-2019 11:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-21-2019 11:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
I hope this helps. If you need any more information I will be happy to provide you with it.

02-22-2019 06:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-22-2019 06:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-22-2019 19:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-22-2019 19:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

02-26-2019 10:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-26-2019 10:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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`
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

11-20-2019 22:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-20-2019 22:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I have the same issue when I try to setup my Fitbit with the ENBD Fitness App.
What is the solution for this?

11-20-2019 22:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-20-2019 22:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
How to down grade ?

11-21-2019 17:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



11-21-2019 17:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

