02-09-2021
09:04
- last edited on
02-09-2021
15:46
by
Gordon-C
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-09-2021
09:04
- last edited on
02-09-2021
15:46
by
Gordon-C
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Background: I am trying to check the status of the current access code in my databse, while doing so I am receiving a 401. I have attached my code for the same in a Gist. Please help.
02-09-2021 15:42 - edited 02-09-2021 15:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-09-2021 15:42 - edited 02-09-2021 15:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Prab
This is a duplicate support request from the case you created through our web form. Let's focus on the web form case and then post the solution here afterwards. Also, I'd recommend that you remove any tokens, client IDs, client secrets and user IDs when publishing code to the community forums. If the API Support team needs it, we will tell you how to provide that information to us securely. I have removed your link to the code.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-10-2021 09:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-10-2021 09:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The reason for the 401 error is the client ID of the application calling introspect is different from the client ID of the access token.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

