/_ah/login returns status 500

417 views
Skip to first unread message

Lior Harsat

unread,
Sep 12, 2011, 10:55:40 AM9/12/11
to google-a...@googlegroups.com
Hi,

I have an android application that authenticates to the app engine with the a google account.
I am experiencing a very annoying issue. 
Once in a while I start getting status 500 when posting /_ah/login?... to my app.
I just get the regular server error message : 
"Error: Server Error

The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this error message and the query that caused it."

currently I am unable to get non 500 status from app engine.
This is not the first time this has happened and it just goes away by itself after more than a few hours.
The app engine status page does not show there is any issue.
The last time this happened, I did see a few posts in this group and in app engine java group about this issue but there was no response by any Googler.

Is anyone using Google authentication on a production environment?
Is it flakey as it seems?
Any help will be appreciated (before I re write my authentication process).

Thanx,Lior

Gabriel Charette

unread,
Sep 17, 2011, 11:41:52 PM9/17/11
to Google App Engine
Interesting,

I am trying to setup authentication using /_ah/login as well and am
seeing 500s repetitively (actually that's all I'm seeing).
I can swear I've had it working before exactly the way I'm
implementing it right now, but for 2 days I've been banging my head
trying to figure out why it doesn't work.

Maybe after all this is a real issue, not a problem in my new
implementation??

Is anyone able to get a response from /_ah/login right now??

Thanks,
Gabriel

On Sep 12, 10:55 am, Lior Harsat <lior.har...@gmail.com> wrote:
> Hi,
>
> I have an android application that authenticates to the app engine with the
> a google account.
> I am experiencing a very annoying issue.
> Once in a while I start getting status 500 when posting /_ah/login?... to my
> app.
> I just get the regular server error message :
>
> "Error: Server Error
> The server encountered an error and could not complete your request.
>
> If the problem persists, please report<http://code.google.com/appengine/community.html> your

Gabriel Charette

unread,
Sep 18, 2011, 11:29:30 AM9/18/11
to Google App Engine
Hi,

I had the same problem and just found the solution.

My token was no longer valid, which means your app has to invalidate
the token in the cache itself and redo the request with the new token.

http://stackoverflow.com/questions/3919071/what-is-the-proper-url-to-get-an-auth-cookie-from-a-gae-based-application/3929312#3929312

Cheers,
Gabriel

On Sep 12, 10:55 am, Lior Harsat <lior.har...@gmail.com> wrote:
> Hi,
>
> I have an android application that authenticates to the app engine with the
> a google account.
> I am experiencing a very annoying issue.
> Once in a while I start getting status 500 when posting /_ah/login?... to my
> app.
> I just get the regular server error message :
>
> "Error: Server Error
> The server encountered an error and could not complete your request.
>
> If the problem persists, please report<http://code.google.com/appengine/community.html> your

Lior Harsat

unread,
Sep 20, 2011, 3:29:20 AM9/20/11
to google-a...@googlegroups.com
Hi Gabriel,

fix, worked for me as well. Thanx :-)
Reply all
Reply to author
Forward
0 new messages