[google-appengine] Re: The server encountered an error and could not complete your request.

2013-02-13 Thread Kristopher Giesing
That typically means your app returned a 500 error code to whatever was 
fetching the document (it's not clear below whether you're running in a 
browser or making an API call from an app or something else).

You should check the admin console for the deployed app and go to the logs 
section.  Any query that returns a 500 should be tagged as an error, so if 
you filter on that you should see the full log for the failed query.  A 500 
is returned in numerous circumstances; one of the more common cases is a 
null pointer exception in your Java code, just to give you an idea.  But 
the log should tell you what happened in any case.

https://developers.google.com/appengine/docs/adminconsole/index

- Kris

On Monday, February 11, 2013 8:02:01 PM UTC-8, inviteef...@gmail.com wrote:
>
> Hi all,
>
> I used JDO to implement a query. Everything is fine in my localhost. But 
> when I deployed my code, it shows:
>
> 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.
> for the query page.
>
> I didn't get any error in eclipse console, nor warning. And I did exactly 
> as the 
> https://developers.google.com/appengine/docs/java/datastore/jdo/queries
> the page can be fine as long as I do not process the results. What might 
> be wrong? Anyone have any suggestions?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: The server encountered an error and could not complete your request.

2010-03-02 Thread Marc Provost
Hi Waleed,

You are not seeing any errors/warnings in the logs? There are a few
possibilities here.

If the request hits your app:

* You could be hitting the 30 seconds limit (maybe because the input
is too large or something). You should see an error in the logs.
* Your code could also be raising an exception that you do not catch.
You should see an error in the logs.
* It is also possible that the return status of the request is set to
500 somehow. In this case, if your application could silently catch
the exception without logging anything. But you should be able to
debug it by logging info messages in your request handler.

If your request does not hit your app:

* You could be hitting the simultaneous requests limit. That's a
warning in the logs, but it shouldn't be reproducible every time.

Hope it helps,
Marc

On Mar 2, 3:09 am, Waleed  wrote:
> I'm getting this error for some requests:
>
> 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.
>
> It's repeatable and the error happens every time for that specific
> request I'm sending. I tested with another AE app and I get the same
> problem. The request doesn't seem to be hitting my app, but fails
> before that, so I can't do anything about it. When I submit the same
> request with different data in the POST body, it goes through and
> works well.
>
> My request is a simple POST with a blog feed in the body of the post.
> Nothing particularly unique about it. And as I mentioned earlier, it
> works for most feeds, except for a few where it breaks 100% of the
> time.
>
> How can I debug this? Can anyone shed some light? App id is:
> networkedblogs

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: The server encountered an error and could not complete your request.

2010-03-02 Thread Waleed Abdulla
Hi Mark,
I'm testing this on my dev app, which has no load at all, so it's not
the simultaneous requests limit. Although the same problem happens on the
production app for that specific request. It's a reproducible problem. This
is what I see in the logs:


03-02 04:42PM 08.454 /api/pshb?bid=363429&source=ppp&hub=http%3A%2F%
2Fdev.networkedblogs.com%2F&topic=http%3A%2F%
2Fchaoswrappedinchocolate-coveredgrins.blogspot.com%2Ffeeds%2Fposts%2Fdefault&sig=6aed0a71ee0d7573fe6fc37a7f40ac6f5f27071f
500 40097ms 8cpu_ms 8api_cpu_ms 0kb NetworkedBlogs,gzip(gfe),gzip(gfe)

173.203.209.168 - - [02/Mar/2010:16:42:48 -0800] "POST
/api/pshb?bid=363429&source=ppp&hub=http%3A%2F%2Fdev.networkedblogs.com
%2F&topic=http%3A%2F%2Fchaoswrappedinchocolate-coveredgrins.blogspot.com%2Ffeeds%2Fposts%2Fdefault&sig=6aed0a71ee0d7573fe6fc37f7f40ac6f5f27071f
HTTP/1.1" 500 0 - "NetworkedBlogs,gzip(gfe),gzip(gfe)"


I have a logging.info() statement right at the start of the app as
follows:

def main():
logging.info("processing request")
wsgiref.handlers.CGIHandler().run(application)

But I don't see that info message in the log, so I'm taking that to mean
that the execution is not hitting my app. I don't see any other details in
the log other than what I lited above. The size of the POST body I'm sending
is 139836 bytes, which is not that big.

Any other ideas?


Regards,
Waleed




On Tue, Mar 2, 2010 at 8:29 AM, Marc Provost  wrote:

> Hi Waleed,
>
> You are not seeing any errors/warnings in the logs? There are a few
> possibilities here.
>
> If the request hits your app:
>
> * You could be hitting the 30 seconds limit (maybe because the input
> is too large or something). You should see an error in the logs.
> * Your code could also be raising an exception that you do not catch.
> You should see an error in the logs.
> * It is also possible that the return status of the request is set to
> 500 somehow. In this case, if your application could silently catch
> the exception without logging anything. But you should be able to
> debug it by logging info messages in your request handler.
>
> If your request does not hit your app:
>
> * You could be hitting the simultaneous requests limit. That's a
> warning in the logs, but it shouldn't be reproducible every time.
>
> Hope it helps,
> Marc
>
> On Mar 2, 3:09 am, Waleed  wrote:
> > I'm getting this error for some requests:
> >
> > 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.
> >
> > It's repeatable and the error happens every time for that specific
> > request I'm sending. I tested with another AE app and I get the same
> > problem. The request doesn't seem to be hitting my app, but fails
> > before that, so I can't do anything about it. When I submit the same
> > request with different data in the POST body, it goes through and
> > works well.
> >
> > My request is a simple POST with a blog feed in the body of the post.
> > Nothing particularly unique about it. And as I mentioned earlier, it
> > works for most feeds, except for a few where it breaks 100% of the
> > time.
> >
> > How can I debug this? Can anyone shed some light? App id is:
> > networkedblogs
>
> --
> 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-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: The server encountered an error and could not complete your request.

2010-03-04 Thread Waleed Abdulla
I might have more information after a lot of testing. It seems that if an
internal error happens while processing the request on the App Engine, then
that process is killed and none of the log messages are recorded. Can
someone from Google confirm this?

That might explain why I don't see any of the my logging.info() messages,
which led me to think that that request is not hitting my app. Anyone else
experienced this?

Waleed



On Tue, Mar 2, 2010 at 4:57 PM, Waleed Abdulla  wrote:

> Hi Mark,
> I'm testing this on my dev app, which has no load at all, so it's not
> the simultaneous requests limit. Although the same problem happens on the
> production app for that specific request. It's a reproducible problem. This
> is what I see in the logs:
>
>
> 03-02 04:42PM 08.454 /api/pshb?bid=363429&source=ppp&hub=http%3A%2F%
> 2Fdev.networkedblogs.com%2F&topic=http%3A%2F%
> 2Fchaoswrappedinchocolate-coveredgrins.blogspot.com%2Ffeeds%2Fposts%2Fdefault&sig=6aed0a71ee0d7573fe6fc37a7f40ac6f5f27071f
> 500 40097ms 8cpu_ms 8api_cpu_ms 0kb NetworkedBlogs,gzip(gfe),gzip(gfe)
>
> 173.203.209.168 - - [02/Mar/2010:16:42:48 -0800] "POST
> /api/pshb?bid=363429&source=ppp&hub=http%3A%2F%2Fdev.networkedblogs.com
> %2F&topic=http%3A%2F%2Fchaoswrappedinchocolate-coveredgrins.blogspot.com%2Ffeeds%2Fposts%2Fdefault&sig=6aed0a71ee0d7573fe6fc37f7f40ac6f5f27071f
> HTTP/1.1" 500 0 - "NetworkedBlogs,gzip(gfe),gzip(gfe)"
>
>
> I have a logging.info() statement right at the start of the app as
> follows:
>
> def main():
> logging.info("processing request")
> wsgiref.handlers.CGIHandler().run(application)
>
> But I don't see that info message in the log, so I'm taking that to
> mean that the execution is not hitting my app. I don't see any other details
> in the log other than what I lited above. The size of the POST body I'm
> sending is 139836 bytes, which is not that big.
>
> Any other ideas?
>
>
> Regards,
> Waleed
>
>
>
>
> On Tue, Mar 2, 2010 at 8:29 AM, Marc Provost  wrote:
>
>> Hi Waleed,
>>
>> You are not seeing any errors/warnings in the logs? There are a few
>> possibilities here.
>>
>> If the request hits your app:
>>
>> * You could be hitting the 30 seconds limit (maybe because the input
>> is too large or something). You should see an error in the logs.
>> * Your code could also be raising an exception that you do not catch.
>> You should see an error in the logs.
>> * It is also possible that the return status of the request is set to
>> 500 somehow. In this case, if your application could silently catch
>> the exception without logging anything. But you should be able to
>> debug it by logging info messages in your request handler.
>>
>> If your request does not hit your app:
>>
>> * You could be hitting the simultaneous requests limit. That's a
>> warning in the logs, but it shouldn't be reproducible every time.
>>
>> Hope it helps,
>> Marc
>>
>> On Mar 2, 3:09 am, Waleed  wrote:
>> > I'm getting this error for some requests:
>> >
>> > 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.
>> >
>> > It's repeatable and the error happens every time for that specific
>> > request I'm sending. I tested with another AE app and I get the same
>> > problem. The request doesn't seem to be hitting my app, but fails
>> > before that, so I can't do anything about it. When I submit the same
>> > request with different data in the POST body, it goes through and
>> > works well.
>> >
>> > My request is a simple POST with a blog feed in the body of the post.
>> > Nothing particularly unique about it. And as I mentioned earlier, it
>> > works for most feeds, except for a few where it breaks 100% of the
>> > time.
>> >
>> > How can I debug this? Can anyone shed some light? App id is:
>> > networkedblogs
>>
>> --
>> 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-appeng...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>>
>

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: The server encountered an error and could not complete your request.

2010-03-06 Thread Waleed Abdulla
I think I know what's happening now, so I'm sharing it for everyone's
benefit. I was using the feedparser library to parse a feed, and that got
into some sort of infinite loop. What worries me, though, is the fact that
the App Engine didn't log any information from any of the logging.info()
messages that executed before reaching the infinite loop, which made it
really hard to find out what was going on. On localhost, the logging happens
even if the process dies eventually, but on the live app engine that doesn't
seem to be the case.

Waleed




On Thu, Mar 4, 2010 at 10:49 PM, Waleed Abdulla  wrote:

> I might have more information after a lot of testing. It seems that if an
> internal error happens while processing the request on the App Engine, then
> that process is killed and none of the log messages are recorded. Can
> someone from Google confirm this?
>
> That might explain why I don't see any of the my logging.info() messages,
> which led me to think that that request is not hitting my app. Anyone else
> experienced this?
>
> Waleed
>
>
>
>
> On Tue, Mar 2, 2010 at 4:57 PM, Waleed Abdulla  wrote:
>
>> Hi Mark,
>> I'm testing this on my dev app, which has no load at all, so it's not
>> the simultaneous requests limit. Although the same problem happens on the
>> production app for that specific request. It's a reproducible problem. This
>> is what I see in the logs:
>>
>>
>> 03-02 04:42PM 08.454 /api/pshb?bid=363429&source=ppp&hub=http%3A%2F%
>> 2Fdev.networkedblogs.com%2F&topic=http%3A%2F%
>> 2Fchaoswrappedinchocolate-coveredgrins.blogspot.com%2Ffeeds%2Fposts%2Fdefault&sig=6aed0a71ee0d7573fe6fc37a7f40ac6f5f27071f
>> 500 40097ms 8cpu_ms 8api_cpu_ms 0kb NetworkedBlogs,gzip(gfe),gzip(gfe)
>>
>> 173.203.209.168 - - [02/Mar/2010:16:42:48 -0800] "POST
>> /api/pshb?bid=363429&source=ppp&hub=http%3A%2F%2Fdev.networkedblogs.com
>> %2F&topic=http%3A%2F%2Fchaoswrappedinchocolate-coveredgrins.blogspot.com%2Ffeeds%2Fposts%2Fdefault&sig=6aed0a71ee0d7573fe6fc37f7f40ac6f5f27071f
>> HTTP/1.1" 500 0 - "NetworkedBlogs,gzip(gfe),gzip(gfe)"
>>
>>
>> I have a logging.info() statement right at the start of the app as
>> follows:
>>
>> def main():
>> logging.info("processing request")
>> wsgiref.handlers.CGIHandler().run(application)
>>
>> But I don't see that info message in the log, so I'm taking that to
>> mean that the execution is not hitting my app. I don't see any other details
>> in the log other than what I lited above. The size of the POST body I'm
>> sending is 139836 bytes, which is not that big.
>>
>> Any other ideas?
>>
>>
>> Regards,
>> Waleed
>>
>>
>>
>>
>> On Tue, Mar 2, 2010 at 8:29 AM, Marc Provost  wrote:
>>
>>> Hi Waleed,
>>>
>>> You are not seeing any errors/warnings in the logs? There are a few
>>> possibilities here.
>>>
>>> If the request hits your app:
>>>
>>> * You could be hitting the 30 seconds limit (maybe because the input
>>> is too large or something). You should see an error in the logs.
>>> * Your code could also be raising an exception that you do not catch.
>>> You should see an error in the logs.
>>> * It is also possible that the return status of the request is set to
>>> 500 somehow. In this case, if your application could silently catch
>>> the exception without logging anything. But you should be able to
>>> debug it by logging info messages in your request handler.
>>>
>>> If your request does not hit your app:
>>>
>>> * You could be hitting the simultaneous requests limit. That's a
>>> warning in the logs, but it shouldn't be reproducible every time.
>>>
>>> Hope it helps,
>>> Marc
>>>
>>> On Mar 2, 3:09 am, Waleed  wrote:
>>> > I'm getting this error for some requests:
>>> >
>>> > 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.
>>> >
>>> > It's repeatable and the error happens every time for that specific
>>> > request I'm sending. I tested with another AE app and I get the same
>>> > problem. The request doesn't seem to be hitting my app, but fails
>>> > before that, so I can't do anything about it. When I submit the same
>>> > request with different data in the POST body, it goes through and
>>> > works well.
>>> >
>>> > My request is a simple POST with a blog feed in the body of the post.
>>> > Nothing particularly unique about it. And as I mentioned earlier, it
>>> > works for most feeds, except for a few where it breaks 100% of the
>>> > time.
>>> >
>>> > How can I debug this? Can anyone shed some light? App id is:
>>> > networkedblogs
>>>
>>> --
>>> 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-appeng...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/g