Avnish1985 / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

invalid code response when trying to get the access token #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I used the "https://bit.ly/oauth/authorize" API and get the code in the 
redirect uri http service, when the service tried to get the access token using 
the API "https://api-ssl.bitly.com/oauth/access_token", it always returns the 
response:
INVALID_CODE

The code is returned by the bit.ly service, so I don't think the code is 
invalid. I also checked the client_id and client_secret again, there is no 
typo. Is there any other reason to get the "INVALID_CODE" response?

Thanks,
Juan

Original issue reported on code.google.com by juanh...@gmail.com on 17 Jun 2011 at 5:25

GoogleCodeExporter commented 8 years ago
Same here. Tried using PHP (curl) and posting a form. Same result: INVALID_CODE

Original comment by eric...@gmail.com on 7 Nov 2011 at 7:59

GoogleCodeExporter commented 8 years ago
Did either of you figure this one out? I'm having the same issue with a code 
received from bitly seconds before and correct client id / secret

Original comment by tom.moor on 8 Feb 2012 at 7:33

GoogleCodeExporter commented 8 years ago
I had this same issue and it turned out to be an issue of my redirect_uri not 
being exactly the same. Once that was fixed, it was all good.

Original comment by Geek.Mik...@gmail.com on 13 Jun 2012 at 8:30