TotallyInformation / node-red-contrib-fs

Node-Red node template for host filing system handling
Apache License 2.0
14 stars 6 forks source link

File listing caused exception #12

Closed Jodameister closed 4 years ago

Jodameister commented 4 years ago

I've 169 files in a directory. When I use the node, it caused an exception and node red service is restarting. Log says:

Oct 6 02:30:19 homeserver Node-RED[415]: 6 Oct 02:30:18 - [red] Uncaught Exception: Oct 6 02:30:19 homeserver Node-RED[415]: 6 Oct 02:30:18 - TypeError: Cannot read property 'getNode' of undefined Oct 6 02:30:19 homeserver Node-RED[415]: at Node.send (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:188:39) Oct 6 02:30:19 homeserver Node-RED[415]: at ReaddirpStream.readdirp.on.on.on.on (/home/pi/.node-red/node_modules/node-red-contrib-fs/fs/fs-file-lister.js:183:25) Oct 6 02:30:19 homeserver Node-RED[415]: at ReaddirpStream.emit (events.js:198:13) Oct 6 02:30:19 homeserver Node-RED[415]: at endReadableNT (_stream_readable.js:1145:12) Oct 6 02:30:19 homeserver Node-RED[415]: at process._tickCallback (internal/process/next_tick.js:63:19)

TotallyInformation commented 4 years ago

Hi, thanks for raising this. Can you please confirm which version of node.js and Node-RED you are using? Also, can you please confirm whether you are using the latest version of this node?

TotallyInformation commented 4 years ago

Whilst I don't think for a second that this will fix the issue you are having, you might like to try v1.1.1 that I've just published to npm. There is a tiny chance it will fix the issue.

Jodameister commented 4 years ago

Hi, the update did it. Thank you for the fast response! Greetings from Germany!

TotallyInformation commented 4 years ago

Cool, thanks for your patience.