Since I did the Node Red update which uses Ingress my flows aren’t working anymore.
When something runs the debug log has errors about not being able to read.
Everything was working happily before the v3.0.0 update.
I have uninstalled Node-Red, Deleted the Config/Node-Red folder reinstalled and reimported my flow and nothing has changed.
Is there some kind of old permission file for node red pre v3.0.0 that might be hanging around which is blocking node red from accessing my entities in Home assistant?
Here is latest log
24 Apr 17:37:05 - [info] Starting flows
24 Apr 17:37:05 - [error] [server-state-changed:4567d933.1879d8] TypeError: Cannot read property ‘addListener’ of undefined
24 Apr 17:37:05 - [error] [server-state-changed:e1dbebb4.70c958] TypeError: Cannot read property ‘addListener’ of undefined
24 Apr 17:37:05 - [info] Started flows
[24/Apr/2019:17:37:05 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) POST /flows HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
24 Apr 17:37:06 - [error] [api-call-service:Garage Lights ON] TypeError: Cannot read property ‘connectionState’ of undefined
[24/Apr/2019:17:37:06 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) POST /inject/25568cff.1055a4 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
24 Apr 17:37:07 - [error] [api-call-service:Garage Lights ON] TypeError: Cannot read property ‘connectionState’ of undefined
[24/Apr/2019:17:37:07 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) POST /inject/25568cff.1055a4 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
(node:505) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘getStates’ of undefined
at CurrentStateNode.onInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/nodes/current-state/current-state.js:61:51)
at CurrentStateNode.preOnInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:440:18)
at CurrentStateNode.emit (events.js:182:13)
at CurrentStateNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:237:14)
at SwitchNode.Node.send (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:224:14)
at applyRules (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:441:42)
at applyRule (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:224:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:199:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:168:13)
at getV1 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:181:13)
(node:505) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 27)
24 Apr 17:37:07 - [error] [api-call-service:Bedside Light ON] TypeError: Cannot read property ‘connectionState’ of undefined
(node:505) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘getStates’ of undefined
at CurrentStateNode.onInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/nodes/current-state/current-state.js:61:51)
at CurrentStateNode.preOnInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:440:18)
at CurrentStateNode.emit (events.js:182:13)
at CurrentStateNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:237:14)
at SwitchNode.Node.send (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:224:14)
at applyRules (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:441:42)
at applyRule (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:224:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:199:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:168:13)
at getV1 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:181:13)
(node:505) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 28)
(node:505) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘getStates’ of undefined
at CurrentStateNode.onInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/nodes/current-state/current-state.js:61:51)
at CurrentStateNode.preOnInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:440:18)
at CurrentStateNode.emit (events.js:182:13)
at CurrentStateNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:237:14)
at SwitchNode.Node.send (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:224:14)
at applyRules (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:441:42)
at applyRule (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:224:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:199:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:168:13)
at getV1 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:181:13)
(node:505) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 29)
[24/Apr/2019:17:37:26 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) GET /red/images/typedInput/09.png HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[24/Apr/2019:17:37:26 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) GET /red/images/typedInput/az.png HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[24/Apr/2019:17:37:26 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) GET /red/images/typedInput/json.png HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[24/Apr/2019:17:37:26 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) GET /red/images/typedInput/bin.png HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[24/Apr/2019:17:37:26 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) GET /red/images/typedInput/bool.png HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[24/Apr/2019:17:37:26 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) GET /red/images/typedInput/env.png HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
24 Apr 17:37:37 - [info] Stopping flows
24 Apr 17:37:37 - [info] Stopped flows
24 Apr 17:37:37 - [info] Starting flows
24 Apr 17:37:37 - [error] [server-state-changed:4567d933.1879d8] TypeError: Cannot read property ‘addListener’ of undefined
24 Apr 17:37:37 - [error] [server-state-changed:e1dbebb4.70c958] TypeError: Cannot read property ‘addListener’ of undefined
24 Apr 17:37:37 - [info] Started flows
[24/Apr/2019:17:37:37 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) POST /flows HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
24 Apr 17:37:38 - [error] [api-call-service:Garage Lights ON] TypeError: Cannot read property ‘connectionState’ of undefined
[24/Apr/2019:17:37:38 +0800] 200 192.168.8.225, 172.30.32.1(172.30.32.2) POST /inject/25568cff.1055a4 HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
24 Apr 17:37:39 - [error] [api-call-service:Bedside Light ON] TypeError: Cannot read property ‘connectionState’ of undefined
(node:505) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘getStates’ of undefined
at CurrentStateNode.onInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/nodes/current-state/current-state.js:61:51)
at CurrentStateNode.preOnInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:440:18)
at CurrentStateNode.emit (events.js:182:13)
at CurrentStateNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:237:14)
at SwitchNode.Node.send (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:224:14)
at applyRules (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:441:42)
at applyRule (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:224:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:199:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:168:13)
at getV1 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:181:13)
(node:505) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 30)
(node:505) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘getStates’ of undefined
at CurrentStateNode.onInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/nodes/current-state/current-state.js:61:51)
at CurrentStateNode.preOnInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:440:18)
at CurrentStateNode.emit (events.js:182:13)
at CurrentStateNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:237:14)
at SwitchNode.Node.send (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:224:14)
at applyRules (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:441:42)
at applyRule (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:224:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:199:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:168:13)
at getV1 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:181:13)
(node:505) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 31)
(node:505) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘getStates’ of undefined
at CurrentStateNode.onInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/nodes/current-state/current-state.js:61:51)
at CurrentStateNode.preOnInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:440:18)
at CurrentStateNode.emit (events.js:182:13)
at CurrentStateNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:237:14)
at SwitchNode.Node.send (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:224:14)
at applyRules (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:441:42)
at applyRule (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:224:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:199:17)
at getV2 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:168:13)
at getV1 (/opt/node_modules/@node-red/nodes/core/logic/10-switch.js:181:13)