Hello, I am saving the output of a python script that I am running on node-RED into a local file. Because the output is too long (I am guessing), it comes in two message.payload right next to the other. I want to save them both into a local file and when I put a save file node after the python script , I get this error:
failed to write to file: Error: write after end
I am aware of this post https://github.com/node-red/node-red/pull/1894 and I understand now what the problem is, but I don't know how to fix it. I don't understand how to download/implement the solution in this post. I can't find anything. Does anyone have a different solution or can tell me how to implement this one? Thanks.
If you read that PR, you will see it was merged into the code in the v0.19.5 release of NR so if you are on v0.19.5 or later, this is already in the code.
When posting an issue it is helpful to provide
version on node-red
version of node.js
platform you are using and OS version (like Raspberry Pi running stretch lite)
a simplified copy of your flow demonstrating the issue.
Doing this will save time for people who might decide to help you.
Okay, thanks. I did read the PR but I do not understand these words. You are right, I have a version v0.19.4 . Is the only solution to install Node-RED from the start? I already have a big flow that is working. Am I gonna lose everything?
Node-RED reports where the flows file is on startup. How to copy that to a new location? Copying a file is hopefully something you already know how to do.
The projects feature? See the docs on the node-red website.