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

Request failed with status code 401 while getting status of access code

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.

 

 

 

 

Best Answer
0 Votes
2 REPLIES 2

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

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

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.   

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