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

Invalid Client or Invalid Request

I started the process of (getting a token)over using the Fitbit API debug tool, Authorized myself, plugged the code in, sent the curl command to Hurl.it, and got an "invalid client" or an "invalid request" message on different occasions. What could be the problem?

9-23-2016 10-34-33 AM.jpg

 

9-23-2016 10-33-13 AM.jpg

Best Answer
0 Votes
3 REPLIES 3

The invalid_client error means you don't have a proper Authorization header. Did you put your client id and client secret into the OAuth 2 tutorial form?

 

The redirect_uri mismatch error is a bug we're aware of with Hurl.it. You should use the copy the raw cURL command and paste into terminal instead.

Best Answer
0 Votes

Thanks Jeremiah. Which terminal are you referring to? I am new to this, appreciate your help.

 

And on the Authorization header topic, I encoded the client id and client secret in Base 64 before I stuck it in the header as instructed.

Best Answer
0 Votes

On macOS, there is an app called Terminal.

 

I'm not sure how to use cURL in Windows, but I think it's included as part of Windows 10 Anniversary Edition's BASH support.

Best Answer
0 Votes