st-one-io / node-red-contrib-smb

Node of Node-RED for SMB Protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught Exception since NodeRED Version Update

its-Zeke opened this issue · comments

Hey guys,
i was successfully using the SMB node for quiet a while to read files from a fileshare.
Since i updated my NodeRED Version to >3 and also my NodeJS to >18, the node kills my NodeRED whenever i try to read from a network share. This happens to my local NodeRED, but also a Docker-based NodeRED running on a Linux VM.

This is the exception:
8 Jun 15:14:17 - [error] Error: error:0308010C:digital envelope routines::unsupported
at Cipheriv.createCipherBase (node:internal/crypto/cipher:122:19)
at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:141:3)
at new Cipheriv (node:internal/crypto/cipher:249:3)
at Object.createCipheriv (node:crypto:141:10)
at MyDir:.node-red\node_modules\ntlm\lib\smbhash.js:46:22
at Array.forEach ()
at lmhashbuf (MyDir:.node-red\node_modules\ntlm\lib\smbhash.js:45:20)
at Object.encodeType3 (MyDir:.node-red\node_modules\ntlm\lib\ntlm.js:106:3)
at Object.generate (MyDir:.node-red\node_modules@marsaud\smb2\lib\messages\session_setup_step2.js:14:22)
at SMB2Forge.request (MyDir:.node-red\node_modules@marsaud\smb2\lib\tools\smb2-forge.js:16:24)

My current versions:
8 Jun 15:39:19 - [info] Node-RED version: v3.0.2
8 Jun 15:39:19 - [info] Node.js version: v18.16.0
8 Jun 15:39:19 - [info] Windows_NT 10.0.19045 x64 LE

SMB Node Version is 1.2.0.

I also tested with the SMBv2 node, same behaviour.