Timeout must be a string?

HA: 2022.9.7
Node-Red: 13.4.0
node-red-contrib-home-assistant-websocket: 0.45.3 (manage palette says there is a 0.45.8 available, but it fails to update)

I have a flow where I wait for a sensor to go off, the node looks like this:


But with the latest node-red updates, it doesn’t work, I get an error like this:
"ValidationError: "timeout" must be a string"l
Sounds like an error? Time for a bug-report?

Try leaving it blank instead.

1 Like

it was fixed in 0.45.5

1 Like

Great, how do I select. 5 when it says there is a. 8 that subsequently fails to install?

what does the log say when you update?

And have you restarted NodeRed before trying to update?

1 Like

Log says:

2022-10-04T18:58:48.952Z Install : node-red-contrib-home-assistant-websocket 0.45.8
2022-10-04T18:58:50.508Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-10-04T18:58:51.874Z [err] npm
2022-10-04T18:58:51.875Z [err]  
2022-10-04T18:58:51.875Z [err] WARN
2022-10-04T18:58:51.875Z [err]  
2022-10-04T18:58:51.875Z [err] config
2022-10-04T18:58:51.876Z [err]  production Use `--omit=dev` instead.
2022-10-04T18:58:55.289Z [err] npm ERR! code ENOTEMPTY
2022-10-04T18:58:55.289Z [err] npm ERR! syscall rename
2022-10-04T18:58:55.289Z [err] npm ERR! path /config/node-red/node_modules/node-red-node-email
2022-10-04T18:58:55.289Z [err] npm ERR! dest /config/node-red/node_modules/.node-red-node-email-9kimBKpy
2022-10-04T18:58:55.289Z [err] npm ERR! errno -39
2022-10-04T18:58:55.289Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
2022-10-04T18:58:55.291Z [err]
2022-10-04T18:58:55.291Z [err] npm ERR! A complete log of this run can be found in:
2022-10-04T18:58:55.291Z [err] npm
2022-10-04T18:58:55.292Z [err]  ERR!     /root/.npm/_logs/2022-10-04T18_58_51_806Z-debug-0.log
2022-10-04T18:58:55.303Z rc=217

And yes, I did try restart, tried several things…

Seems like you email palette is causing issues.
You need to get that fixed first.

1 Like

Yeah, I’ve tried to fix that, can’t find a solution for it.
I tried deleting the two folders mentioned (stopped NR, delete folder, start NR)
After doing that, the log shows this:

2022-10-04T19:20:13.732Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-10-04T19:20:14.571Z [err] npm
2022-10-04T19:20:14.574Z [err]  
2022-10-04T19:20:14.574Z [err] WARN
2022-10-04T19:20:14.575Z [err]  
2022-10-04T19:20:14.575Z [err] config
2022-10-04T19:20:14.576Z [err]  production Use `--omit=dev` instead.
2022-10-04T19:20:18.306Z [err] npm
2022-10-04T19:20:18.306Z [err]  
2022-10-04T19:20:18.307Z [err] ERR!
2022-10-04T19:20:18.307Z [err]  
2022-10-04T19:20:18.308Z [err] code
2022-10-04T19:20:18.308Z [err]  ENOTEMPTY
2022-10-04T19:20:18.309Z [err] npm
2022-10-04T19:20:18.309Z [err]  
2022-10-04T19:20:18.309Z [err] ERR!
2022-10-04T19:20:18.310Z [err]  
2022-10-04T19:20:18.310Z [err] syscall
2022-10-04T19:20:18.310Z [err]  rename
2022-10-04T19:20:18.310Z [err] npm
2022-10-04T19:20:18.310Z [err]  
2022-10-04T19:20:18.311Z [err] ERR!
2022-10-04T19:20:18.311Z [err]  
2022-10-04T19:20:18.311Z [err] path
2022-10-04T19:20:18.311Z [err]  /config/node-red/node_modules/node-red-node-email/node_modules/encoding-japanese/src
2022-10-04T19:20:18.311Z [err] npm
2022-10-04T19:20:18.312Z [err]  
2022-10-04T19:20:18.312Z [err] ERR!
2022-10-04T19:20:18.312Z [err]  
2022-10-04T19:20:18.312Z [err] dest
2022-10-04T19:20:18.312Z [err]  /config/node-red/node_modules/.node-red-node-email-9kimBKpy/node_modules/encoding-japanese/src
2022-10-04T19:20:18.313Z [err] npm
2022-10-04T19:20:18.313Z [err]  
2022-10-04T19:20:18.313Z [err] ERR!
2022-10-04T19:20:18.313Z [err]  
2022-10-04T19:20:18.314Z [err] errno
2022-10-04T19:20:18.314Z [err]  -39
2022-10-04T19:20:18.316Z [err] npm
2022-10-04T19:20:18.317Z [err]  
2022-10-04T19:20:18.317Z [err] ERR!
2022-10-04T19:20:18.318Z [err]  ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email/node_modules/encoding-japanese/src' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy/node_modules/encoding-japanese/src'
2022-10-04T19:20:18.320Z [err] 
2022-10-04T19:20:18.321Z [err] npm
2022-10-04T19:20:18.321Z [err]  
2022-10-04T19:20:18.321Z [err] ERR!
2022-10-04T19:20:18.321Z [err]  A complete log of this run can be found in:
2022-10-04T19:20:18.322Z [err] npm
2022-10-04T19:20:18.322Z [err]  
2022-10-04T19:20:18.322Z [err] ERR!
2022-10-04T19:20:18.322Z [err]      /root/.npm/_logs/2022-10-04T19_20_14_479Z-debug-0.log
2022-10-04T19:20:18.332Z rc=217

Hmm, I tried renaming it WHILE NR was running, and now it updated the email, now I’ll restart and try the other modules that needs updating…

Now it works, geeez, that was weird.
So for me the solution was to delete the ‘target’ folder, then rename the folders as in the log, and then update the email node.
Then after that, restart NR, then I could update the HA websocket node, and now the timeout node is working again.

The last module that needs updating is modbus.
But I seem to recall something about that can’t be updated on this platform, or am I totally off the rails?

2022-10-04T19:38:41.903Z Install : node-red-contrib-modbus 5.23.2

2022-10-04T19:38:43.473Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-10-04T19:38:44.385Z [err] npm
2022-10-04T19:38:44.386Z [err]  WARN config production Use `--omit=dev` instead.
2022-10-04T19:38:59.269Z [err] npm 
2022-10-04T19:38:59.270Z [err] ERR! code 1
2022-10-04T19:38:59.273Z [err] npm
2022-10-04T19:38:59.274Z [err]  ERR! path /config/node-red/node_modules/@serialport/bindings
2022-10-04T19:38:59.286Z [err] npm
2022-10-04T19:38:59.287Z [err]  
2022-10-04T19:38:59.287Z [err] ERR!
2022-10-04T19:38:59.287Z [err]  command failed
2022-10-04T19:38:59.288Z [err] npm
2022-10-04T19:38:59.288Z [err]  
2022-10-04T19:38:59.288Z [err] ERR!
2022-10-04T19:38:59.288Z [err]  
2022-10-04T19:38:59.288Z [err] command
2022-10-04T19:38:59.289Z [err]  sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2022-10-04T19:38:59.289Z [err] npm
2022-10-04T19:38:59.289Z [err]  
2022-10-04T19:38:59.289Z [err] ERR!
2022-10-04T19:38:59.289Z [err]  prebuild-install warn install No prebuilt binaries found (target=16.16.0 runtime=node arch=x64 libc=musl platform=linux)
2022-10-04T19:38:59.289Z [err] npm
2022-10-04T19:38:59.289Z [err]  
2022-10-04T19:38:59.290Z [err] ERR!
2022-10-04T19:38:59.290Z [err]  gyp info it worked if it ends with ok
2022-10-04T19:38:59.290Z [err] npm
2022-10-04T19:38:59.290Z [err]  
2022-10-04T19:38:59.290Z [err] ERR!
2022-10-04T19:38:59.290Z [err]  gyp info using [email protected]
2022-10-04T19:38:59.290Z [err] npm
2022-10-04T19:38:59.291Z [err]  
2022-10-04T19:38:59.291Z [err] ERR!
2022-10-04T19:38:59.291Z [err]  gyp info using [email protected] | linux | x64
2022-10-04T19:38:59.291Z [err] npm
2022-10-04T19:38:59.291Z [err]  
2022-10-04T19:38:59.291Z [err] ERR!
2022-10-04T19:38:59.291Z [err]  gyp ERR! find Python 
2022-10-04T19:38:59.292Z [err] npm
2022-10-04T19:38:59.292Z [err]  
2022-10-04T19:38:59.292Z [err] ERR!
2022-10-04T19:38:59.292Z [err]  gyp ERR! find Python checking Python explicitly set from command line or npm configuration
2022-10-04T19:38:59.292Z [err] npm ERR!
2022-10-04T19:38:59.292Z [err]  gyp ERR! find Python - "--python=" or "npm config get python" is "/usr/bin/python3"
2022-10-04T19:38:59.292Z [err] npm ERR! gyp ERR! find Python - "/usr/bin/python3" is not in PATH or produced an error
2022-10-04T19:38:59.292Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2022-10-04T19:38:59.292Z [err] npm ERR!
2022-10-04T19:38:59.293Z [err]  gyp ERR! find Python checking if "python3" can be used
2022-10-04T19:38:59.293Z [err] npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
2022-10-04T19:38:59.293Z [err] npm ERR!
2022-10-04T19:38:59.293Z [err]  gyp ERR! find Python checking if "python" can be used
2022-10-04T19:38:59.293Z [err] npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
2022-10-04T19:38:59.293Z [err] npm
2022-10-04T19:38:59.293Z [err]  ERR! gyp ERR! find Python 
2022-10-04T19:38:59.293Z [err] npm ERR! gyp ERR! find Python **********************************************************
2022-10-04T19:38:59.293Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python.
2022-10-04T19:38:59.293Z [err] npm 
2022-10-04T19:38:59.293Z [err] ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
2022-10-04T19:38:59.293Z [err] npm ERR!
2022-10-04T19:38:59.293Z [err]  gyp ERR! find Python you can try one of the following options:
2022-10-04T19:38:59.293Z [err] npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
2022-10-04T19:38:59.293Z [err] npm
2022-10-04T19:38:59.293Z [err]  ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)
2022-10-04T19:38:59.293Z [err] npm ERR!
2022-10-04T19:38:59.293Z [err]  gyp ERR! find Python - Set the environment variable PYTHON
2022-10-04T19:38:59.293Z [err] npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
2022-10-04T19:38:59.293Z [err] npm
2022-10-04T19:38:59.293Z [err]  ERR! gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
2022-10-04T19:38:59.293Z [err] npm
2022-10-04T19:38:59.293Z [err]  ERR! gyp ERR! find Python For more information consult the documentation at:
2022-10-04T19:38:59.293Z [err] npm ERR!
2022-10-04T19:38:59.293Z [err]  gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
2022-10-04T19:38:59.293Z [err] npm ERR!
2022-10-04T19:38:59.293Z [err]  gyp ERR! find Python **********************************************************
2022-10-04T19:38:59.293Z [err] npm ERR! gyp ERR! find Python 
2022-10-04T19:38:59.293Z [err] npm
2022-10-04T19:38:59.293Z [err]  ERR! gyp ERR! configure error 
2022-10-04T19:38:59.293Z [err] npm ERR!
2022-10-04T19:38:59.294Z [err]  gyp ERR! stack Error: Could not find any Python installation to use
2022-10-04T19:38:59.294Z [err] npm ERR! gyp ERR! stack     at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
2022-10-04T19:38:59.294Z [err] npm ERR!
2022-10-04T19:38:59.294Z [err]  gyp ERR! stack     at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
2022-10-04T19:38:59.294Z [err] npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
2022-10-04T19:38:59.294Z [err] npm 
2022-10-04T19:38:59.294Z [err] ERR! gyp ERR! stack     at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
2022-10-04T19:38:59.294Z [err] npm ERR!
2022-10-04T19:38:59.294Z [err]  gyp ERR! stack     at exithandler (node:child_process:406:5)
2022-10-04T19:38:59.294Z [err] npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:418:5)
2022-10-04T19:38:59.294Z [err] npm
2022-10-04T19:38:59.294Z [err]  
2022-10-04T19:38:59.294Z [err] ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
2022-10-04T19:38:59.294Z [err] npm
2022-10-04T19:38:59.294Z [err]  ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-10-04T19:38:59.294Z [err] npm 
2022-10-04T19:38:59.294Z [err] ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:478:16)
2022-10-04T19:38:59.294Z [err] npm 
2022-10-04T19:38:59.294Z [err] ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-10-04T19:38:59.294Z [err] npm ERR!
2022-10-04T19:38:59.294Z [err]  gyp ERR! System Linux 5.15.67
2022-10-04T19:38:59.294Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2022-10-04T19:38:59.294Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/@serialport/bindings
2022-10-04T19:38:59.294Z [err] npm ERR!
2022-10-04T19:38:59.294Z [err]  gyp ERR! node -v v16.16.0
2022-10-04T19:38:59.294Z [err] npm ERR! gyp ERR! node-gyp -v v9.0.0
2022-10-04T19:38:59.295Z [err] npm ERR! gyp ERR! not ok
2022-10-04T19:38:59.298Z [err] 
2022-10-04T19:38:59.298Z [err] npm ERR! A complete log of this run can be found in:
2022-10-04T19:38:59.298Z [err] npm ERR!     /root/.npm/_logs/2022-10-04T19_38_44_306Z-debug-0.log
2022-10-04T19:38:59.317Z rc=1

You are not required to update that. It should just not be in an unknown state in the update process.

1 Like