# Subflow input output wires disappear

**URL:** <https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630>\
**Category:** Core Development\
**Created:** [25 March 2020 16:45 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630 "2020-03-25T16:45:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [25 March 2020 16:45 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/1 "2020-03-25T16:45:05Z")

</div>

Hi All,

I hope it fits the category chosen since wiring is a pretty basic functionality in node-red. The problem is that no clue why and when but sometimes the wires from my subflow inputs to the first node disappear (and the same happens to the output node wires).

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/d/6dd07131dd102e020d7565271fad92870674f1cb.png)

Any hints are welcome!

Best regards,  
r0ller

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 March 2020 17:09 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/2 "2020-03-25T17:09:05Z")

</div>

Hi @r0ller

we've not had any similar reports to this, so any more information you can share would be appreciated.

What version of Node-RED are you using? What browser? Are there any error messages in the browser's javascript console? If you hit deploy, is the flow broken because the wires are not there, or is this just a visual quirk where the wires exist but aren't being drawn properly?

Are you able to reproduce this reliably?

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [25 March 2020 17:48 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/3 "2020-03-25T17:48:53Z")

</div>

Hi @knolleary

Here are some details:  
Node-RED version: v1.0.2  
Node.js version: v12.13.0  
Linux 4.19.66-v7+ arm LE (on raspberry 3b+)  
Dashboard version 2.19.0

The browsers used in our team are mainly chrome and firefox -at least I haven't seen anything else. I'm using firefox.

Unfortunately, I cannot tell if there are any messages in the console. I haven't checked it but will do so next time.

Deploy works just fine which is really strange. But it's definitely not just a ui/visual bug as it affects running the flow. E.g. the subflow pasted takes care of the role based authentication according to which we enable/disable ui widgets for the user. So when the input/output wires disappear in that subflow the app will go funky like certain things will be disabled or won't be shown for you which you shall be able to see, etc. At this stage we usually suspect that someone has changed the logic of a flow or something is screwed up in the db. The last thing we check if the wires are still in place.

Unfortunately, I don't know how to reproduce it. It happens once in a month or so (this was the third occasion) but I know that this info is of no help. Next time I'll check the console...

Best regards,  
r0ller

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [26 March 2020 11:00 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/4 "2020-03-26T11:00:54Z")

</div>

Hi again,

It has just happened again so I managed to check the console and there aren't any messages (neither error nor any other kind). Besides, I made a little change in a subflow concerned by just moving the first node after the input node where the wire disappeared to be able to trigger a deploy. Nothing got reported during the deploy except that it was successful.

Best regards,  
r0ller

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 March 2020 11:02 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/5 "2020-03-26T11:02:06Z")

</div>

Sorry to butt in here, but I reported this yonks ago.

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [26 March 2020 11:03 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/6 "2020-03-26T11:03:56Z")

</div>

Are you able to reproduce it reliably? Is there any way to avoid this?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 March 2020 11:07 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/7 "2020-03-26T11:07:58Z")

</div>

Every time I exported/imported the subflow it did it.

I reported it (looking for my post now) and it was taken on as a problem.

I won't say more just now. I'm searching a lot of posts and I think it was a real while back.

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [26 March 2020 11:13 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/8 "2020-03-26T11:13:12Z")

</div>

In our case, we don't even touch the subflows concerned. Someone deploys his work done on another tab/flow and the wires disappear after a while on certain subflows.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 March 2020 11:20 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/9 "2020-03-26T11:20:31Z")

</div>

Ok, that isn't what I reported.

Mine was I wrote a `subflow` on one machine and tested it.

I exported it and imported it to another machine.

The _wires_ between the input and the actual nodes, and the nodes and the outputs were missing.

I tested this a few times and, as said: I was told it would be addressed.  
Typically I can't find the thread just now.  
I need to learn how to do better searches.

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [26 March 2020 11:23 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/10 "2020-03-26T11:23:10Z")

</div>

I think your issue is the same. At least, the symptoms. The difference is that your input/output wires disappeared in the subflow on exporting/importing while ours disappear due to normal deploys (or god knows what).

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 March 2020 11:31 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/11 "2020-03-26T11:31:22Z")

</div>

This is my thread:

[Subflow wires missing](https://discourse.nodered.org/t/importing-sub-flows-something-isnt-working/19805/2)

Jan 2

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [26 March 2020 11:35 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/12 "2020-03-26T11:35:33Z")

</div>

Thanks! I hope it'll help them find the root cause and fix both as yours is reproducable while mine is not.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [26 March 2020 11:49 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/13 "2020-03-26T11:49:39Z")

</div>

These are two separate issues.

@Trying_to_learn reported an issue regarding the Link node wires disappearing.

That is a different issue to the wires to the Subflow input/output nodes spontaneously disappearing.

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [26 March 2020 11:52 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/14 "2020-03-26T11:52:29Z")

</div>

I thought only that the logic handling the wiring is the same regardless of what kind of nodes are wired.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 March 2020 14:34 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/15 "2020-03-26T14:34:47Z")

</div>

@r0ller I see you are on v1.0.2.  
Can you move to v1.0.4 to see if it happens there?

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [26 March 2020 17:03 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/16 "2020-03-26T17:03:23Z")

</div>

I also considered it but I can only try it later (in roughly two weeks) as I'm kind of concerned about such a change right before a milestone.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 March 2020 20:19 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/17 "2020-03-26T20:19:40Z")

</div>

Hi @r0ller,

As much as I can understand your reluctance to update, I was on NR 1.0.3.

Updating to 1.0.4 fixed it.

So alas it is a double edged sword.

If you have more than one machine: update one and see if it fixes the problem.

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [6 April 2020 17:21 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/18 "2020-04-06T17:21:42Z")

</div>

Hi,

Upgraded to 1.0.4 during the weekend but no luck: it's still happening ☹

Best regards,  
r0ller

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 April 2020 18:11 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/19 "2020-04-06T18:11:33Z")

</div>

Are you the only one editing the flow or are multiple people working in the editor?

---

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [6 April 2020 18:46 UTC](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630/20 "2020-04-06T18:46:36Z")

</div>

That's what I also suspect. There may even be 7 people working on the project at the same time but not on the same flow usually and definitely noone on the subflows in question.

[Next page](https://discourse.nodered.org/t/subflow-input-output-wires-disappear/23630.md?page=2)
