# Node-red-node-email hangs after/during netwerk hickup

**URL:** <https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994>\
**Category:** General\
**Created:** [21 January 2022 07:15 UTC](https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994 "2022-01-21T07:15:51Z")\
**Posts on this page:** 6\
**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:** [21 January 2022 07:15 UTC](https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994/1 "2022-01-21T07:15:51Z")

</div>

Hello all

I found that this problem occurs when there was no network/internet connection for a certain amount of time.

> [@Node-red-node-email stops working](https://discourse.nodered.org/t/node-red-node-email-stops-working/34810):
>
> 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. When i redeploy the node with the same settings, it gets all the missed mails immediately. Anybody who has an id…

I made a flow that notifies me after a network outage and i see problems with the node-red-node-email at the same time, not everytime. I think it occurs when the network outage disturbes the fetching of the emails, the node hangs in fetching until it is restarted.

Regards

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 January 2022 07:51 UTC](https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994/2 "2022-01-21T07:51:02Z")

</div>

Hi.

> [@blckshdw](#):
>
> I made a flow that notifies me after a network outage

> [@blckshdw](#):
>
> the node hangs in fetching until it is restarted

Are you using both the "Email" (to send) & the "Email In" node (to retrieve emails)?

Are you saying the "Email" node fails to send when the "Email In" node is hung?

Would you be willing to test without "Email In" for a period of time (or it is integral to your system)

Lastly...

- what versions of nodejs, node-red and node-red-node-email do you have?
- are there any relevant entries in node-red debug or node-red console?
- what protocol are you using - could you share (redacted) screenshots or sample flow?

---

<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:** [21 January 2022 09:57 UTC](https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994/3 "2022-01-21T09:57:39Z")

</div>

I'm using both "email in" and "email" (out).  
I've never experienced problems with "email" (out).

I noticed that "email in" hangs in state fetching (i don't have a print screen at the moment).  
I have a simple flow that pings a host each second and i count the lost pings to calculate the time my network or internet was down. I send that calculated time in a message when connections are restored. That is when i started seeing that when "email in" hangs in the fetching state, my internet connection was (mostly short) down at the same moment.

I'm using node red in docker, version 2.1.6.  
I see that i'm using node-red-node-email version 1.12.3, i updated to 1.14.0 just now.  
At the moment of the problemens with "mail in", i don't see anything in the console.  
I'm using the following settings:  
[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97b30ace4787e02e1475aba9f035b4108d3823fe.png) ](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97b30ace4787e02e1475aba9f035b4108d3823fe.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 January 2022 10:02 UTC](https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994/4 "2022-01-21T10:02:13Z")

</div>

> [@blckshdw](#):
>
> I see that i'm using node-red-node-email version 1.12.3, i updated to 1.14.0 just now.

ok great.

Can you keep an eye on that and feed back if it fixes the issue (or not)?

---

<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:** [18 February 2022 06:48 UTC](https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994/5 "2022-02-18T06:48:10Z")

</div>

The issue is still there with a fully up-to-date node-red and mail node.  
I'm not 100% sure a network hickup was the cause as i didn't receive a notification of that.  
Maybe an undetected hickup in the internet path was the cause.

No debug messages, the node just hangs untill i restart/redeploy all nodes

![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/8/e820246023b746e8c642e5f9711c6e8eec7ff51b.png)

---

<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:** [19 April 2022 06:48 UTC](https://discourse.nodered.org/t/node-red-node-email-hangs-after-during-netwerk-hickup/56994/6 "2022-04-19T06:48:18Z")

</div>

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