I am getting this exception thrown as well. But I am getting it EVERY
time through a certain code path.
I am using app-engine-patch (with Django 1.1) and on my staging server
I am stubbing out the mail method to rewrite the "to" addresses with
my name instead. So that my staging server doesn't send out real
emails to real people.
The code looks like this:
def send_mail_stub(subject, message, from_email, recipient_list,
fail_silently=False, auth_user=None,
auth_password=None):
message += "\n\n would have been sent to %s" % recipient_list
return django.core.mail.original_send_mail(subject, message,
from_email, settings.ADMINS,
False, auth_user, auth_password)
#setup some behaviour for the staging box
if 'APPLICATION_ID' in os.environ and "staging" in os.environ.get
('APPLICATION_ID'):
#only send emails to the admin
django.core.mail.original_send_mail =django.core.mail.send_mail
django.core.mail.send_mail = send_mail_stub
and the stack-trace looks like this:
File "/base/data/home/apps/igloohq-staging/6.335371320147864076/
common/zip-packages/django-1.1.zip/django/core/mail.py", line 395, in
mail_admins
_mail_group(settings.ADMINS, subject, message, fail_silently)
File "/base/data/home/apps/igloohq-staging/6.335371320147864076/
common/zip-packages/django-1.1.zip/django/core/mail.py", line 408, in
_mail_group
fail_silently)
File "/base/data/home/apps/igloohq-staging/6.335371320147864076/ads/
settings.py", line 25, in send_mail_stub
fail_silently, auth_user, auth_password)
File "/base/data/home/apps/igloohq-staging/6.335371320147864076/
common/zip-packages/django-1.1.zip/django/core/mail.py", line 369, in
send_mail
connection=connection).send()
File "/base/data/home/apps/igloohq-staging/6.335371320147864076/
common/zip-packages/django-1.1.zip/django/core/mail.py", line 245, in
send
return self.get_connection(fail_silently).send_messages([self])
File "/base/data/home/apps/igloohq-staging/6.335371320147864076/
common/zip-packages/django-1.1.zip/django/core/mail.py", line 139, in
send_messages
sent = self._send(message)
File "/base/data/home/apps/igloohq-staging/6.335371320147864076/
common/zip-packages/django-1.1.zip/django/core/mail.py", line 165, in
_send
e.send()
File "/base/python_lib/versions/1/google/appengine/api/mail.py",
line 513, in send
raise e
ApplicationError: ApplicationError: 1
On Jul 15, 3:50 am, "Jeff S (Google)" <[email protected]> wrote:
> Hi Bill,
>
> Feel free to send me your source code privately, that would be helpful. Also
> I'm curious how quickly these emails are being sent. Are all of these emails
> being sent out in a minute, an hour...?
>
> Cheers,
>
> Jeff
>
> On Mon, Jul 13, 2009 at 1:00 AM, Bill Mers <[email protected]> wrote:
>
> > Hey Jeff,
>
> > We're experiencing this exact same problem -- after sending an
> > indeterminate amount of emails (50+), App Engine will throw an
> > "ApplicationError: ApplicationError: 1" exception. The stacktrace we
> > get is identical to the previous poster:
>
> > message.send()
> > File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> > line 513, in send
> > raise e
> > ApplicationError: ApplicationError: 1
>
> > Do you have any suggestions on how to track this down? We'd be
> > willing to share our source code with you directly if that would
> > help. Any assistance would be greatly appreciated!
>
> > thanks
> > Bill
>
> > On Jul 8, 5:19 am, "Jeff S (Google)" <[email protected]> wrote:
> > > Hi Ray,
>
> > > It looks like ApplicationError 1 indicates an internal error, but there
> > is
> > > not much more I can say without trying to reproduce the issue. Would you
> > be
> > > willing to share some of your source code? Also, how rapidly are these
> > > emails being sent?
>
> > > The errors which are returned by the underlying mail API are defined in
> > the
> > > following protocol buffer service:
> >http://code.google.com/p/googleappengine/source/browse/trunk/python/g...
>
> > > The exception is raised in the mail.py code, and since the internal error
> > is
> > > not listed in ERROR_MAP, a more generic ApplicationError is raised.
> >http://code.google.com/p/googleappengine/source/browse/trunk/python/g...
>
> > > Cheers,
>
> > > Jeff
>
> > > On Sat, Jul 4, 2009 at 8:11 AM, Ray Malone <[email protected]> wrote:
>
> > > > message.send()
> > > > File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> > > > line 513, in send
> > > > raise e
> > > > ApplicationError: ApplicationError: 1
>
> > > > I'm sending out several hundred emails to people that have signed up
> > > > to announcements, but after 70 or so go I get this error.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---