Closed htmltiger closed 11 months ago
@meironke you have, inside of container!
docker exec -it nodered bash
Works like a charm! Thank you!
I thought it would be in the 'data' folder, but it is not! Here's a detailed "how to".
docker exec -it nodered bash
#if your container is called "nodered" and not "nodered_prod_orWhatEver"nano node_modules/@node-red/util/lib/util.js
CTRL-Q
and seach for "Deprecated API"//
Should look like this then (without the colors).
Hi, maybe i found a workaround for users of the NR-Addon. Put the following line in the config page of the Addon in the section
init_commands
and restart the addon.
sed -i "772,775d" /opt/node_modules/@node-red/util/lib/util.js
( added missing
/opt/
thx @kevinschmidt86 )
Problem temporary solved. Please read the Thread !!!
Hi, maybe i found a workaround for users of the NR-Addon. Put the following line in the config page of the Addon in the section
init_commands
and restart the addon.sed -i "772,775d" /opt/node_modules/@node-red/util/lib/util.js
( added missing/opt/
thx @kevinschmidt86 )Problem temporary solved. Please read the Thread !!!
A temporary hack is not a FIX - I asked when will this be "FIXED". no reason to downvote the post?
Hi, maybe i found a workaround for users of the NR-Addon. Put the following line in the config page of the Addon in the section
init_commands
and restart the addon.sed -i "772,775d" /opt/node_modules/@node-red/util/lib/util.js
( added missing/opt/
thx @kevinschmidt86 )Problem temporary solved. Please read the Thread !!!
Maybe you need to read my reply before meaninglessly down voting my post - I use node red inside Home assistant so i cant use this "work around".
I use it also in HA and it work for me ant the other Addon Users. Edit: I mean that whas a Temporary method not a fix. Sorry for that but we all here wait for a better solution, no need to spam the e-mail inbox for ewery useless comment.
A temporary hack is not a FIX - I asked when will this be "FIXED". no reason to downvote the post?
The issue is a warning of something that will happen in the next major version of NR, at that point the nodes/calls will need to be done differently. The temporary fix is solving THIS problem, as the thread is about. It removes all those spamming warnings in your debug window. The thread has the fix both for those running NR in a container, and for those of us who run it as an addon in HA. So the "problem" is solved by this thread, but there should be changes done before NR 4.0 comes out.
Guys, please see this: https://github.com/zachowj/node-red-contrib-home-assistant-websocket/pull/1063
Please fix
Hi, maybe i found a workaround for users of the NR-Addon. Put the following line in the config page of the Addon in the section
init_commands
and restart the addon.sed -i "772,775d" node_modules/@node-red/util/lib/util.js
Worked for me, except I had to add "/opt/" the string, resulting in the following: "sed -i "772,775d" /opt/node_modules/@node-red/util/lib/util.js"
Worked for me! Thank you so much!
Edit: In case you want to know what this does, rather than blindly run it (like I did 🤷 ), it deletes the code lines that are logging the Warn message from the javascript library file. It does not change any code behavior.
It also means you may need to reapply this delete if you receive further updates that overwrite this file (and they still haven't fixed this)
Adding another vote to fix this. The debug window is useless with these warnings constantly filling it up.
Adding another vote to fix this. The debug window is useless with these warnings constantly filling it up.
Please check 1063 (already mentioned last week - see a few posts ago). This is now just awaiting the normal release pipeline.
It seems the Node Red guys are out of control in this case - and that is really really bad for the node red society.
I unfortunately think, I now have to change away from the ever changing node red to the build in action controls of Home Assistant.
It seems the Node Red guys are out of control in this case - and that is really really bad for the node red society.
I unfortunately think, I now have to change away from the ever changing node red to the build in action controls of Home Assistant.
First off, I don't really know what you're referring to when you say "out of control", I've used Node Red a lot the last 2 years, and this is the only issue I have ever had. Second, you can just implement the fix over, it takes 10 seconds and then you restart the add-on, problem solved. When it's changed in NR add-on/nodes you can just remove the line again from your configuration. I think you're making this into a much bigger thing than it has to, but if you want to move all your automations over to native Home Assistant, go ahead. You either have very simple automations, or you have way too much time on your hands. Node Red wins hands down any day of the week in simplicity and flexibility.
This issue has been fixed and will be in the next release.
This issue never stopped the Home Assistant nodes from working correctly, it was just an annoyance. Solutions to remove this annoyance have been posted above in this issue.
Describe the bug
Just upgraded to node red 3.1.0-beta.2 but greeted with the following
To Reproduce
upgraded node-red by
npm install node-red@next
Expected behavior
No response
Screenshots
No response
Example Flow
No response
This package's version (not the Home Assistant add-on version)
0.49
Is Node-RED running in Docker?
No
Node-RED version
3.1.0-beta.2
Node.js version
18.15.0
Additional context
No response