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

Oauth2 token exchange returns 400 error from cloudflare, but curl successfully gets access token?

Hi all.

I am attempting to perform an access token exchange. When I perform my exchange requests via my written code application, the request returns a html-encoded 400 Bad Request response from cloudflare.

However, when I perform the same request via curl the exchange succeeds and I get back the access token information.

I've compared the parameters and headers of each request and I can't discern any difference between the two.

Is there anything particular I am doing wrong?

@GordonFitbitI am hoping that you can help me, so I am DMing you my client_id right away.

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>cloudflare</center>
</body>
</html>

 

Best Answer
0 Votes
2 REPLIES 2

I can't quite see how to DM a user directly, so I will wait to see if someone has some advice on how to proceed.

 

Best Answer
0 Votes

Hi @edtrundo 

 

I was out of the office last week.   Just to check in, are you still receiving the 400 error?   When you perform the access token exchange, is this when using the authorization code or refresh token?   How often does this error occur?

 

Gordon

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