RED.nodes.getNode fails on Windows 10

Hi folks,

I'm currently developing a node which contains following endpoint:

RED.httpAdmin.get('/xterm_shell/:node_id/:terminal_id/:command/:info', function(req, res) {
   var xtermShellNode = RED.nodes.getNode(req.params.node_id);
   ...
}

The config screen call this endpoint and passes it's node_id in the URL.

Normally I only work on Raspberry, and on Raspberry it works fine!! The RED.nodes.getNode returns the specified node instance, so I can do my stuff ...

However this node needs to do some specific stuff on Windows, so I have tested this on my Windows 10 portable. But there the function returns null:

image

  • The node id is passed correctly by the client via the URL:

    image

  • This corresponds exactly to the node id in my flow editor:

    image

  • So I hoped to find something more by debugging into the RED.nodes.getNode, but there all arrays are empty for some reason:

    image

  • And I think my versions are quite correct:

    17 Nov 19:11:51 - [info] Node-RED version: v1.0.2
    17 Nov 19:11:51 - [info] Node.js version: v10.15.3

Does anybody have a tip?

Thanks,
Bart