# Version 1.1.x / 1.2.x and Express

**URL:** <https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573>\
**Category:** General\
**Created:** [20 October 2020 13:41 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573 "2020-10-20T13:41:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [20 October 2020 13:41 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/1 "2020-10-20T13:41:08Z")

</div>

Hi

Has anybody seen strange behaviour with Node-RED v1.1.x and 1.2.x when running embedded in an app using Express?

We have noticed that when we restart our app with a web page open that was previously browsing our app, the app does not always restart correctly. We have to close the web page and start the app with it closed before opening the web page to make it work correctly.

We do not see this behaviour with Node-RED v1.0.6 and below.

Cheers

Chris

---

<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:** [20 October 2020 13:57 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/2 "2020-10-20T13:57:19Z")

</div>

What do you mean by "does not always restart correctly"? What are the actual symptoms?

---

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [20 October 2020 14:24 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/3 "2020-10-20T14:24:31Z")

</div>

Hi Nick

That is a good question! I am currently digging to see if I can provide any more sensible detail. I seem to be getting a failed token, but I don't know if that is a token on our end or possibly the NR auth failing (we are using a custom auth module so NR users are based on our Mobius users).

I will dig a bit more and let you know, just wanted to throw this out there in case anybody else had experienced issues with Express and v1.1.x and had a simple fix.

Cheers

Chris

---

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [20 October 2020 14:25 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/4 "2020-10-20T14:25:47Z")

</div>

Oh, and it doesn't happen every time, seems a bit random just to make it more fun to debug 🙂

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [20 October 2020 15:18 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/5 "2020-10-20T15:18:29Z")

</div>

Any possible impact because of time sync issue? Authentication almost always requires all 'entities' having (very) good time synchronization, that is always the first thing I rule in or out when it comes to tokens and the like... For years of supporting Microsoft AD, this became second nature quite quickly. Nevermind how touchy Kerberos is during complex authentication.

---

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [21 October 2020 12:52 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/6 "2020-10-21T12:52:42Z")

</div>

Hi  
It is not that, everything is running on the same PC  
Cheers

---

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [21 October 2020 12:54 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/7 "2020-10-21T12:54:47Z")

</div>

@knolleary have you introduced a /authenticated endpoint in Node-RED from 1.1.0? Our code now times out when it tries to hit our /authenticated endpoint, but works fine with NR 1.0.6

---

<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:** [21 October 2020 12:59 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/8 "2020-10-21T12:59:50Z")

</div>

I can't think of any changes we've made that would cause that. Certainly not added any new routes to the admin api.

---

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [21 October 2020 14:39 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/9 "2020-10-21T14:39:56Z")

</div>

OK, thanks. The hunt continues 🙂

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [21 October 2020 16:14 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/10 "2020-10-21T16:14:37Z")

</div>

Cool, at least ruled out a few things.

---

<div class="post-metadata">

**Author:** ![yutter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yutter/32/9026_2.png) [@yutter](https://discourse.nodered.org/u/yutter)\
**Post date:** [27 October 2020 10:08 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/11 "2020-10-27T10:08:16Z")

</div>

Still not found the cause, but I will keep digging. I have a work around for now but will report back if I find anything

---

<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:** [26 December 2020 10:08 UTC](https://discourse.nodered.org/t/version-1-1-x-1-2-x-and-express/34573/12 "2020-12-26T10:08:24Z")

</div>

Closed on 26 December 2020 10:08 UTC

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