DeadlineExceededError in the mail API

34 views
Skip to first unread message

Ian Lewis

unread,
Sep 30, 2011, 12:18:36 AM9/30/11
to Google Appengine Mailing List
Hi,

I'm seeing a lot of errors in one of my applications when making
requests to the email RPC.

I am getting DeadlineExceededErrors being throw about half of the time
the api is called. The full error
is as follows.

...
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/mail.py",
line 390, in send_mail
message.send(make_sync_call)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/mail.py",
line 891, in send
make_sync_call('mail', self._API_CALL, message, response)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 94, in MakeSyncCall
return stubmap.MakeSyncCall(service, call, request, response)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 308, in MakeSyncCall
rpc.CheckSuccess()
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py",
line 133, in CheckSuccess
raise self.exception
DeadlineExceededError: The API call mail.Send() took too long to
respond and was cancelled.

Is anyone else seeing this?

--
Ian

http://www.ianlewis.org/

Dennis

unread,
Sep 30, 2011, 1:02:20 AM9/30/11
to google-a...@googlegroups.com
yes, i have been getting this error consistently for over 24 hours on my app.

i assumed it would be fixed by google quickly, but i guess not.
my app has not changed for weeks so it's something in the appengine infrastructure.

Rishi Arora

unread,
Sep 30, 2011, 1:32:26 AM9/30/11
to google-a...@googlegroups.com
Ditto.  I'm noticing nearly 30% of all my mail send operations are failing.  Fortunately, the last time this happened (a few weeks ago), I tucked in my mail send() calls in a taskqueue task.  So, if it fails, the task queue automatically retries, in accordance with the back off algorithm parameters defined in queues.yaml.  This has worked just fine, except that it introduces a little delay in the emails reaching their recipient.  For my app, that is tolerable.


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/1dTvL0LDZkUJ.

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.

pdknsk

unread,
Sep 30, 2011, 5:50:36 AM9/30/11
to Google App Engine
Likewise.

voscausa

unread,
Sep 30, 2011, 6:09:45 AM9/30/11
to google-a...@googlegroups.com
I have the same problems the last couple of days.

This issue has been reported a year ago. Please star it.

nischalshetty

unread,
Sep 30, 2011, 8:35:48 AM9/30/11
to google-a...@googlegroups.com
+1

Francois Masurel

unread,
Sep 30, 2011, 5:52:19 PM9/30/11
to google-a...@googlegroups.com
Yep getting some too, for some really basic email.

Francois
Reply all
Reply to author
Forward
0 new messages