Ereporter problem

81 views
Skip to first unread message

MLTrim

unread,
Sep 28, 2010, 6:27:15 PM9/28/10
to Google App Engine
Hi
I have configured Ereporter following Nick's post and documentation of
appengine site.
In a nutshell:
1. App.yaml with /_ereporter.* on top of the handlers
2. Cron job

I have a couple of ExceptionRecord Entities (catched with
ereporter.register_logger()) browsable with Data Viewer

Looking at logs, Cron job works and call the proper handler that looks
like this:
url: /_ereporter?sender=f...@gmail.com&delete=false [f...@gmail.com is a
valid administrator]

PROBLEM: I don't receive any mail :(.

I tried also to call
http://myfooapp.appspot.com/_ereporter?debug=true but all I get is a
white page.

Any hints?

Thanks in advance
Michele

Ubaldo Huerta

unread,
Nov 9, 2011, 11:00:52 AM11/9/11
to google-a...@googlegroups.com
Same problem, blank page. Note that your second example won't work as it will blow up an Exeption. sender argument is always required, even though it isn't needed if you just want to output the exception

Ubaldo Huerta

unread,
Nov 9, 2011, 11:23:49 AM11/9/11
to google-a...@googlegroups.com
Well, just read the ereporter.py, it's easy to follow. You need to pass a date paremeter (it defaults to yesterday)

Pass today's date and you'll see the exception records in the ouput. Something like

"....&date=%s" % datetime.datetime.now().strftime("%Y-%m-%d")

Adam Wildavsky

unread,
May 28, 2014, 4:48:43 PM5/28/14
to google-a...@googlegroups.com
Thanks! Until i saw this I could not figure out why I was not receiving mail.

I want my cron to send me all outstanding exception reports, though, not just yesterday's. How can I achieve that? Calling datetime.datetime.now() would be clever, but i don't know where to put the call. My choices seem to be app.yaml or cron.yaml, but as far as I can tell neither passes through a Python interpreter.

Adam Wildavsky

unread,
May 31, 2014, 11:43:21 PM5/31/14
to google-a...@googlegroups.com
I think I figured this out, though I haven't yet implemented it. I described my proposal at


Here's the relevant part -- I also included a link to this thread:

You could also write your own cron handler to wrap the _ereporter and provide today's date programmatically, something like this:

self.redirect("/_ereporter ... &date=%s" % datetime.datetime.now().strftime("%Y-%m-%d"))

I plan to do that so that I can get an hourly exception report.

If there's a way to do this without a wrapper (and without cloning the ereporter code in my own project) I'd be happy to hear about it!



--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/G99VGhs5cls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages