# Node-red-node-email stops working

**URL:** <https://discourse.nodered.org/t/node-red-node-email-stops-working/34810>\
**Category:** General\
**Created:** [26 October 2020 07:53 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810 "2020-10-26T07:53:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![blckshdw](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blckshdw](https://discourse.nodered.org/u/blckshdw)\
**Post date:** [26 October 2020 07:53 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/1 "2020-10-26T07:53:00Z")

</div>

I use node-red-node-email to check for certain mails in a certain folder.  
I login to gmail with my own domain and app password, this works perfect till the moment the node stops.  
It also worked without problems till i moved to docker and updated everything a while ago.  
No error is shown in the console, i have no other logs at the moment.

 ![2020-10-26 08_43_28-Node-RED _ nodered](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97b30ace4787e02e1475aba9f035b4108d3823fe.png)

When i redeploy the node with the same settings, it gets all the missed mails immediately.

Anybody who has an idea?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2020 09:32 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/2 "2020-10-26T09:32:56Z")

</div>

If you add a Catch node linked to the email node does it send a message?  
Similarly what does a Status node show when it fails?  
In both cases configure debug nodes to Show Full Message to see what is there. Name the nodes so you can easily see which is which.

---

<div class="post-metadata">

**Author:** ![blckshdw](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blckshdw](https://discourse.nodered.org/u/blckshdw)\
**Post date:** [26 October 2020 13:50 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/3 "2020-10-26T13:50:36Z")

</div>

I don't know what you mean link a catch node to the email node, the email node i configured checks for new mails via IMAP protocoll and has 1 output.  
I added a catch node that will send me an email when an exception is thrown, i guess that is what you mean.

I have a debug node attached, but no more output is generated when i see the mail node stops working. When i redeploy the specific node, output is generated and picked up by my function node and the attached debug node.

The mail node just stops checking new mails after x time.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 October 2020 14:15 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/4 "2020-10-26T14:15:49Z")

</div>

We have had occasional reports of this. But not been able to replicate it locally so hard to debug. I can’t think why it would make a difference but have you also tried a repeating inject to trigger the fetch ?

---

<div class="post-metadata">

**Author:** ![blckshdw](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blckshdw](https://discourse.nodered.org/u/blckshdw)\
**Post date:** [26 October 2020 14:27 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/5 "2020-10-26T14:27:11Z")

</div>

The node only has an output, is there a way to trigger it repeatedly?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 October 2020 14:48 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/6 "2020-10-26T14:48:41Z")

</div>

By setting the Get Mail option to triggered...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/9146d3c0994de6d67bf9d9c01b8532b49d0cf262.png)

---

<div class="post-metadata">

**Author:** ![blckshdw](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blckshdw](https://discourse.nodered.org/u/blckshdw)\
**Post date:** [26 October 2020 15:11 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/7 "2020-10-26T15:11:21Z")

</div>

Thanks, hadn't noticed that option.  
I added extra debugging and the node is now triggered by an inject node.  
I also took the mail node out of a subflow.

I had the issue serveral times last days, i'll report here how it goes.

My alarm system sends mails on set, unset, alarm,... i parse the messages and update states in Home Assistant depending on what is happening. Since we turn it on/off every day, i notice when it doesn't do the job.

---

<div class="post-metadata">

**Author:** ![blckshdw](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blckshdw](https://discourse.nodered.org/u/blckshdw)\
**Post date:** [28 October 2020 06:30 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/8 "2020-10-28T06:30:03Z")

</div>

Same issue since this morning.  
It looks like the IMAP Mail node gets stuck in "connecting".  
I see the status of the node stays connecting, if i manually inject the trigger, the status stays "connecting".

A "redeploy" (after faking an edit) of only that node resets it and everything is working fine again.  
My catch node didn't catch an error.

![2020-10-28 07_29_44-Node-RED _ nodered.pixtria.com](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/0/60b2d5287ef800bd369f07832cd2b0bd8b55c832.png)

---

<div class="post-metadata">

**Author:** ![blckshdw](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blckshdw](https://discourse.nodered.org/u/blckshdw)\
**Post date:** [30 October 2020 06:52 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/9 "2020-10-30T06:52:36Z")

</div>

Just had the same issue again, node stuck in connecting, no more output, no error thrown.

What can i try? Suggestions for deeper debug are welcome.

---

<div class="post-metadata">

**Author:** ![blckshdw](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blckshdw](https://discourse.nodered.org/u/blckshdw)\
**Post date:** [13 November 2020 06:37 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/10 "2020-11-13T06:37:38Z")

</div>

Little topic bump.... Still have the problem, chances are small that an external error causes the problem.  
Anyone else seeing this and/or have a possible sollution or workaround?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 January 2021 06:37 UTC](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810/11 "2021-01-12T06:37:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
