-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout of all vsh devices with Node-Red 4.0.2 #261
Comments
Hi @namirda, Thanks for reaching out! I could not reproduce this issue with Node-RED 4.0.2. Could you please share the exact Docker command(s) you are using? |
Thanks for looking into this. I was able to reproduce the issue with a very simple configuration. I created a fresh docker-compose file containing the following:
where /docker/testred/data was an empty directory. After 'docker-compose up' I get a new empty workspace as expected. I then added your 'node-red-contrib-virtual-smart-home' to the palette, dragged a 'virtual device' onto the empty workspace and followed your instructions to use the same Amazon connection as for my regular flows by logging into my Amazon account and entering a code. All seemed to go OK and the connection details were filled as expected. I also selected 'debug' for the connection. After deploying the flow, the 'vsh device' node shows the status "ERROR ETIMEDOUT Periodically retrying". The log of the run looks like this:
Finally, when I modify the exact same docker-compose file to pull Node-Red V3.1.11 then everything works as normal. Thanks for any hints! |
Thanks for providing these details! My hunch is that the issue might stem from Node.js v20, used by Node-RED v4, which changed some network-related defaults. Try adding the following line to the
|
Your hunch is correct - that fixed it!! Will it be required to add those node_options to all node-red instances containing vsh nodes from NRV4 onwards? |
Glad to hear my hunch was correct! 🎉
The |
Bug Description
I have been using vsh for some time now on Node-Red v3.1.11 in a docker container. Works great - thanks.
Today I tried to update to my flows to Node-Red V4.0.2 and now all my vsh nodes have the status
The log file is full of lines like :
Apart from the Node-Red update, nothing has changed in my setup.
I also note that when I dblclk on any vsh node to see the config, I see that my plan is set to "UNKNOWN" rather than "PRO" but when I look at the connection config I still see "PRO" along with a list of all my devices
When I downgrade back to Node-Red V3.1.11 then everything is working again.
Thanks for any advice
To Reproduce
Deploy VSH virtual device node in Node-Red V4.0.2
Expected behavior
It should work the same as with previous Node-Red versions.
Virtual-Smart-Home Version
4.1.2
Node-RED Version
4.0.2
Node.js Version
20.15.1
Plan
PRO
Thing-ID
vsht-1d38eb10-dc54-4296-95c5-f7780f16e39a
The text was updated successfully, but these errors were encountered: