Multiple Invocation of the Mail Handler for the Same Email

55 views
Skip to first unread message

Dzhovani Chemishanov

unread,
Oct 22, 2018, 7:18:20 AM10/22/18
to Google App Engine
Hi all,

  Hour app engine project uses the mail service to receive information.
However, quite often the mail handler is called two times for the same
email. Just today it happened again and I've confirmed from the logs
that there were no issues when the handler was called for the first
time. Is this a known issue and is there a way for it to be mitigated?

  Also, I have the suspicion that such things happen with the task
queue api as well but I'm yet to confirm that.

Regards,

Dzhovani


--
-------- Disclaimer --------
This email and any files transmitted may
contain proprietary and confidential information of ICT Group N.V. or any
of its subsidiaries like Strypes (“ICT”) and is intended only for the (use
of the) named recipient(s) above. If you have received this message in
error or are not the intended or named recipient(s) of this message, please
immediately notify the sender by returning and deleting this email message
from your computer. Any views or opinions presented are solely those of its
author and do not necessarily represent those of Strypes or ICT. You are
hereby notified that unauthorized disclosure, use, dissemination,
forwarding, printing or copying of this e-mail and its attachments either
whole or partial of its contents is strictly prohibited. Strypes or ICT
cannot guarantee that email communications are secure and error-free and
does not accept any liability for damages resulting from the use of email.
The general terms and conditions of purchase respectively sale and delivery
of ICT are applicable to all transactions and undertakings resulting
therefrom.

George (Cloud Platform Support)

unread,
Oct 22, 2018, 3:04:31 PM10/22/18
to Google App Engine
Hello Dzovani, 

How did you determine that the mail handler was called 2 times? A copy of related messages and logs would be appreciated. If you send messages from Cloud Tasks, are retries enabled? If you use Pub/Sub to send messages, it may happen that sending is repeated; there is no one-time guarantee. 

Dzhovani Chemishanov

unread,
Oct 23, 2018, 2:19:23 AM10/23/18
to google-a...@googlegroups.com

Hello George,

  It is neither cloud task or pubsub that we are using, but plain email that the project is monitoring for incoming emails. As per the documentation, the project is expecting post requests on /_ah/mail/string@project_id.appspot.com where an implementation of the receive method handles the incoming message.

This email in particular was sent by my manager who confirmed that he sent it at 1:17 pm. According to the logs, there were two identical requests received at 1:17 pm and 1:20 pm. I'll send you the links to the logs in a private message.

Regards,

Dzhovani


On 10/22/2018 10:04 PM, 'George (Cloud Platform Support)' via Google App Engine wrote:
Hello Dzovani, 

How did you determine that the mail handler was called 2 times? A copy of related messages and logs would be appreciated. If you send messages from Cloud Tasks, are retries enabled? If you use Pub/Sub to send messages, it may happen that sending is repeated; there is no one-time guarantee. 
--
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-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0d197c0e-55d3-4abc-a6ca-ade309e3174e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohammad I (Cloud Platform Support)

unread,
Oct 23, 2018, 9:37:37 PM10/23/18
to Google App Engine

Hello,


OP's original issue appears to be related to Receiving Mail with the Mail API, but it's impossible to tell without more detailed troubleshooting.


What's needed for anybody who would want to report an issue, is to use the issue tracker rather than google groups. This forum is meant for general discussion of the platform, not specific technical issues. If it is required to share any private or project specific information please choose the “Private” component so that the information are not visible to the public.


If you believe that what you've encountered is not a platform issue but rather a problem with how you've configured your code, although you're not sure what it may be specifically, you should post to stackoverflow.


In either case, posting an issue so that other users can help requires very thorough explanation of what you're doing and what's going wrong before the people on the other side of the internet will be able to understand and debug your issue.


I wish you the best of luck in proceeding to either open a proper issue report in the public issue tracker, or posting to stackoverflow so that you can get support from the community of developers.


Dzhovani Chemishanov

unread,
Oct 24, 2018, 4:45:49 AM10/24/18
to google-a...@googlegroups.com

Hello Mohamed,

  It is 99% the receiving mail service, but I decided to gather other opinions first.

Regards,

Dzhovani

--
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-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://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