Open GoogleCodeExporter opened 9 years ago
Steps to reproduce:
1. Go to big daddy application on android
2. Menu -> Register
3. Authorize registration for google acocunt
Original comment by matthew....@gmail.com
on 22 May 2011 at 4:31
Same error on Droid x.
Original comment by patjacks...@gmail.com
on 5 Jun 2011 at 8:37
[deleted comment]
I had a similar issue when using the "Say Hello" button before registering. The
issue was the auth cookie wasn't being sent as part of the request, and the
server was rejecting the call responding with an html login screen (first
character '<').
If you download gwt-2.4Beta and add gwt-user.jar as source (it has compiled and
source files) for requestfactory-client.jar you can breakpoint JsonSplittable
line 79 and see what the parser is barfing on.
Original comment by andybry...@gmail.com
on 11 Jun 2011 at 8:08
Actually source is included with the project in the lib directory. It's just
not hooked up by default.
Original comment by andybry...@gmail.com
on 11 Jun 2011 at 8:15
Excuse the newbie question, but how do you hook up the jar file so you can
view the source?
Original comment by patjacks...@gmail.com
on 13 Jun 2011 at 1:40
Besides the demo on stage, has anyone gotten this to work?
Original comment by vinblau
on 18 Jun 2011 at 8:40
I've spent several weeks trying to fix this with no luck, and has been
extremely aggravating. This is not an issue specifically with the cloud tasks
app, but rather an issue with the generated source code for App Engine
Connected Android Projects.
This worked for the demo at Google IO simply because they were locally
debugging the android project. I don't fully understand why, but when you are
debugging locally, to register for c2dm the the application doesn't actually
require the Authentication Cookie. If you look inside of AccountsActivity.java,
the getAuthCookie method (with cloud tasks, or just a default generated App
Engine Connected Android Project), what happens is before your applications
actually sends out the registration request to c2dm, the android application
first contacts it's designated app engine server sending it the authentication
token, so that it can get back an authentication cookie, that it can send and
use to register for c2dm. The problem is that when we contact the AppEngine
server that we have hosted, the response that we get back has a 500 Internal
Server Error, and as such, an authentication cookie isn't included with the
response. we submit a value of null for the cookie, and so when we ultimately
try and register for c2dm with that null cookie, we lack the credentials to
register, and receive back an html page that we can't parse.
I've been trying to figure out why the request is failing on the app engine
server without much luck. I've been using the Droid X by the way. Please let me
know if anyone has gotten this to work somehow.
Original comment by spierce7@gmail.com
on 19 Jun 2011 at 8:02
I had this problem, and debugging it found I had the same issue as spierce7. To
resolve it, in AccountsActivity.java, the authToken returned in my
authTokenBundle needed to be invalidated - mgr.invalidateAuthToken(acct.type,
authToken).
It's explained nicely on this page , funnily enough with the word "Important"
next to it :)
http://developer.android.com/reference/android/accounts/AccountManager.html
Original comment by akohlh...@gmail.com
on 9 Jul 2011 at 9:17
Hi
In AccountsActivity, mgr.invalidateAuthToken(account.type, authToken); is
already being called inside the run() method in the register(final String
accountName) method, after the getAuthToken(future); call. I still get the
Internal Server Error, any clue?
Original comment by ManuelM...@gmail.com
on 14 Sep 2011 at 7:08
Original issue reported on code.google.com by
matthew....@gmail.com
on 22 May 2011 at 4:25