Open GoogleCodeExporter opened 9 years ago
For the record, I'm running this on an Android device, and I get the same error
when
using the provided sample code.
Original comment by bitflips...@gmail.com
on 2 May 2010 at 9:22
Funny, I am refactoring my android app and hit the same issue tonight. But i
dont
think signpost is to blame.
My old version works fine through all steps of authentication, but my new
version
gets the same error (though for netflix) I have checked connectivity, and the
generated url,. both are fine.
I am using and older revision of this library, (for both code revisions,
unrelated
ticket) but it is not the library that I think is the cause, but rather
Android's
http classes.
Original comment by OlliTech
on 4 May 2010 at 10:24
[deleted comment]
Haha, I figured out my issue, which may not be your own.
IN my example I had doen some search and replace after renaming my class. The
result
was the following changes to my request_token url:
//captial N blows up - file not found
private static final String REQUEST_TOKEN_ENDPOINT_URL =
"http://api.Netflix.com/oauth/request_token";
Well my guess is that the 'nix kernel in Android sees Netflix.com and
netflix.com
differently.
//this works
private static final String REQUEST_TOKEN_ENDPOINT_URL =
"http://api.netflix.com/oauth/request_token";
And I noticed you have some mixed captials in your google URl, just paste it
into
your browser and check the case against the URL it returns.
Original comment by OlliTech
on 9 May 2010 at 10:10
Hm, definitely worth investigating. I copied this URL from Google's API, but
maybe it
needs to be lowercase. At any rate, the bug stands. I'll return later with an
update.
Original comment by bitflips...@gmail.com
on 9 May 2010 at 10:21
This happens because https://www.google.com/accounts/OAuthGetRequestToken
doesn't accept POST requests. Change POST to GET in
DefaultOAuthProvider.java:40 and you're done.
Original comment by alberto....@gmail.com
on 14 Jun 2010 at 1:07
Original issue reported on code.google.com by
bitflips...@gmail.com
on 2 May 2010 at 8:56