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

Error "invalid_grant" while trying to get access token

ANSWERED

Getting the following error while make the call to get token. 

{
    "errors": [
        {
            "errorType""invalid_grant",
            "message""Authorization code invalid: <code> Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process." }
    ],
    "success"false
}
I tried the CURL generated from "OAuth 2.0 tutorial page". Previously it was working.
 
Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

It started working again, not sure what happened is. But now I just tried again and I got access token. Thank you very much for the support given.

View best answer in original post

Best Answer
0 Votes
4 REPLIES 4

Hi @altruify_dev 

 

Are you using a recent authorization code, or the one that was previously working?

 

Gordon

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

I generated a new code and requested for token. Previously it was working, I mean 2 weeks before.

Best Answer
0 Votes

Would you please private message me your complete token request which is failing and include all headers, parameters and their values?

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

It started working again, not sure what happened is. But now I just tried again and I got access token. Thank you very much for the support given.

Best Answer
0 Votes