Error: Server Error from Android phone, no log

37 views
Skip to first unread message

Per Sandström

unread,
Nov 11, 2009, 12:27:18 PM11/11/09
to Google App Engine
I am doing an app that is supposed to be used from my android phone.
Some communication with my GAE-app works, but when I try to send a
post-message to http://pg-sandstrom-guestbook.appspot.com/checklists I
get a server error. This only holds true from my android phones.
Nothing is shown in the Admin panel log, so I dont think the error is
due to my GAE-code. Any help would be greatly appriciated.

Ikai L (Google)

unread,
Nov 12, 2009, 2:28:10 PM11/12/09
to google-a...@googlegroups.com
What is the exact error? Also, can you host a static asset and try to retrieve it with the Android application? I want to rule out that it's a connectivity issue.

2009/11/11 Per Sandström <pg.san...@gmail.com>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com
To unsubscribe from this group, send email to google-appengi...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---




--
Ikai Lan
Developer Programs Engineer, Google App Engine

Per Sandström

unread,
Nov 23, 2009, 6:58:46 AM11/23/09
to Google App Engine
Hi!

This is the exact message I retrieve when my servlet is the way I want
it to be:

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your
request.<p>If the problem persists, please <A HREF="http://
code.google.com/appengine/community.html">report</A> your problem and
mention this error message and the query that caused it.</h2>
<h2></h2>
</body></html>

But still, there are no entries in my admin panel-log under "errors".
However, I just noticed that they appear under "requests" like this:

11-23 03:04AM 23.201 /checklists 500 41499ms 175cpu_ms
175api_cpu_ms 0kb Apache-HttpClient/UNAVAILABLE (java 1.4),gzip(gfe)
See details

81.224.65.211 - - [23/Nov/2009:03:05:04 -0800] "POST /checklists
HTTP/1.1" 500 0 - "Apache-HttpClient/UNAVAILABLE (java 1.4),gzip(gfe)"

They take up 40000ms CPU! I tried decreasing the amount of code that I
executed to find the problem, but it only helped when I didnt access
the permanent storage. So I tried deleting everything that I had
stored, and after that it worked fine even after putting in new
entries. However, my datastore only held ~40 entries. There are
absolutely no reason for this kind of delay on my side. I have no
loops in loops or potentially infinite while-loops or anything like
that. I really do believe this is an error on the GAE-side. Also, I
have now tried to once again fill the datastore with ~40 entries, and
the CPU-time never goes over 250ms. This feels somewhat scary, since
we are planning on releasing our product quite soon, and then the
datastore will be much larger.

On Nov 12, 8:28 pm, "Ikai L (Google)" <ika...@google.com> wrote:
> What is the exact error? Also, can you host a static asset and try to
> retrieve it with the Android application? I want to rule out that it's a
> connectivity issue.
>
> 2009/11/11 Per Sandström <pg.sandst...@gmail.com>
>
>
>
>
>
> > I am doing an app that is supposed to be used from my android phone.
> > Some communication with my GAE-app works, but when I try to send a
> > post-message tohttp://pg-sandstrom-guestbook.appspot.com/checklistsI
> > get a server error. This only holds true from my android phones.
> > Nothing is shown in the Admin panel log, so I dont think the error is
> > due to my GAE-code. Any help would be greatly appriciated.
> > --~--~---------~--~----~------------~-------~--~----~
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-a...@googlegroups.com
> > To unsubscribe from this group, send email to
> > google-appengi...@googlegroups.com<google-appengine%2Bunsu...@googlegroups.com>

Ikai L (Google)

unread,
Nov 23, 2009, 7:09:58 PM11/23/09
to google-a...@googlegroups.com
I'd like to try to replicate this error, but I am getting a 401 when I attempt to POST arbitrary data to that url:

curl -d "a=1" http://pg-sandstrom-guestbook.appspot.com/checklists

What you should try to do is replicate the error using command line tools or by monitoring the low level request. If this URL works in a browser but not from an Android application, you should try to trace the request and find the difference between the requests.

2009/11/23 Per Sandström <pg.san...@gmail.com>
--

You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.


Per Sandström

unread,
Nov 24, 2009, 3:08:08 AM11/24/09
to Google App Engine
Thanks for the reply. Currently I am unable to reproduce the error. I
will investigare it further if it reappears and post here.

Cheers,
Per Sandström

On Nov 24, 1:09 am, "Ikai L (Google)" <ika...@google.com> wrote:
> I'd like to try to replicate this error, but I am getting a 401 when I
> attempt to POST arbitrary data to that url:
>
> curl -d "a=1"http://pg-sandstrom-guestbook.appspot.com/checklists
>
> What you should try to do is replicate the error using command line tools or
> by monitoring the low level request. If this URL works in a browser but not
> from an Android application, you should try to trace the request and find
> the difference between the requests.
>
> 2009/11/23 Per Sandström <pg.sandst...@gmail.com>
> > <google-appengine%2Bunsu...@googlegroups.com<google-appengine%252Buns...@googlegroups.com>
>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine?hl=en
> > > > -~----------~----~----~----~------~----~------~--~---
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-a...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengi...@googlegroups.com<google-appengine%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages