Node-red write data on file





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















I have some trouble in use node File in node-red,



I received the following error:



TypeError: this is not a typed array.
at Function.from (native)
at FileNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/storage/50-file.js:67:39)
at emitOne (events.js:77:13)
at FileNode.emit (events.js:169:7)
at FileNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)
at InjectNode.Node.send (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:137:22)
at InjectNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/core/20-inject.js:77:22)
at emitOne (events.js:77:13)
at InjectNode.emit (events.js:169:7)
at InjectNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)


I put a picture to show it better.
Error on data append to file



How I can fix it?



Note:
As asked
Node-RED version: v0.18.4
Node.js version: v4.2.6



The node configuration is here










share|improve this question

























  • Update the question with the details of how you have configured the file-out node Also what version of Node-RED are you running?

    – hardillb
    Nov 23 '18 at 16:28




















-1















I have some trouble in use node File in node-red,



I received the following error:



TypeError: this is not a typed array.
at Function.from (native)
at FileNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/storage/50-file.js:67:39)
at emitOne (events.js:77:13)
at FileNode.emit (events.js:169:7)
at FileNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)
at InjectNode.Node.send (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:137:22)
at InjectNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/core/20-inject.js:77:22)
at emitOne (events.js:77:13)
at InjectNode.emit (events.js:169:7)
at InjectNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)


I put a picture to show it better.
Error on data append to file



How I can fix it?



Note:
As asked
Node-RED version: v0.18.4
Node.js version: v4.2.6



The node configuration is here










share|improve this question

























  • Update the question with the details of how you have configured the file-out node Also what version of Node-RED are you running?

    – hardillb
    Nov 23 '18 at 16:28
















-1












-1








-1








I have some trouble in use node File in node-red,



I received the following error:



TypeError: this is not a typed array.
at Function.from (native)
at FileNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/storage/50-file.js:67:39)
at emitOne (events.js:77:13)
at FileNode.emit (events.js:169:7)
at FileNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)
at InjectNode.Node.send (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:137:22)
at InjectNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/core/20-inject.js:77:22)
at emitOne (events.js:77:13)
at InjectNode.emit (events.js:169:7)
at InjectNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)


I put a picture to show it better.
Error on data append to file



How I can fix it?



Note:
As asked
Node-RED version: v0.18.4
Node.js version: v4.2.6



The node configuration is here










share|improve this question
















I have some trouble in use node File in node-red,



I received the following error:



TypeError: this is not a typed array.
at Function.from (native)
at FileNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/storage/50-file.js:67:39)
at emitOne (events.js:77:13)
at FileNode.emit (events.js:169:7)
at FileNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)
at InjectNode.Node.send (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:137:22)
at InjectNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/core/20-inject.js:77:22)
at emitOne (events.js:77:13)
at InjectNode.emit (events.js:169:7)
at InjectNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)


I put a picture to show it better.
Error on data append to file



How I can fix it?



Note:
As asked
Node-RED version: v0.18.4
Node.js version: v4.2.6



The node configuration is here







file node-red






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 8:48







Gianluca Petralia

















asked Nov 23 '18 at 15:31









Gianluca PetraliaGianluca Petralia

34




34













  • Update the question with the details of how you have configured the file-out node Also what version of Node-RED are you running?

    – hardillb
    Nov 23 '18 at 16:28





















  • Update the question with the details of how you have configured the file-out node Also what version of Node-RED are you running?

    – hardillb
    Nov 23 '18 at 16:28



















Update the question with the details of how you have configured the file-out node Also what version of Node-RED are you running?

– hardillb
Nov 23 '18 at 16:28







Update the question with the details of how you have configured the file-out node Also what version of Node-RED are you running?

– hardillb
Nov 23 '18 at 16:28














1 Answer
1






active

oldest

votes


















0














You are using a quite old version of Node.js. Most likely the root cause of your issue is the same for the one reported here: Getting TypeError: this is not a typed array using Buffer.from in mocha



It is worth to upgrade your Node.js to 6.x.x or newer.



Note: I replicated your flow in my system, running:



Node-RED version: v0.19.1 and Node.js version: v8.11.1



and it works flawlessly.






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449386%2fnode-red-write-data-on-file%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You are using a quite old version of Node.js. Most likely the root cause of your issue is the same for the one reported here: Getting TypeError: this is not a typed array using Buffer.from in mocha



    It is worth to upgrade your Node.js to 6.x.x or newer.



    Note: I replicated your flow in my system, running:



    Node-RED version: v0.19.1 and Node.js version: v8.11.1



    and it works flawlessly.






    share|improve this answer




























      0














      You are using a quite old version of Node.js. Most likely the root cause of your issue is the same for the one reported here: Getting TypeError: this is not a typed array using Buffer.from in mocha



      It is worth to upgrade your Node.js to 6.x.x or newer.



      Note: I replicated your flow in my system, running:



      Node-RED version: v0.19.1 and Node.js version: v8.11.1



      and it works flawlessly.






      share|improve this answer


























        0












        0








        0







        You are using a quite old version of Node.js. Most likely the root cause of your issue is the same for the one reported here: Getting TypeError: this is not a typed array using Buffer.from in mocha



        It is worth to upgrade your Node.js to 6.x.x or newer.



        Note: I replicated your flow in my system, running:



        Node-RED version: v0.19.1 and Node.js version: v8.11.1



        and it works flawlessly.






        share|improve this answer













        You are using a quite old version of Node.js. Most likely the root cause of your issue is the same for the one reported here: Getting TypeError: this is not a typed array using Buffer.from in mocha



        It is worth to upgrade your Node.js to 6.x.x or newer.



        Note: I replicated your flow in my system, running:



        Node-RED version: v0.19.1 and Node.js version: v8.11.1



        and it works flawlessly.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 7 '18 at 3:10









        AIOT MAKERAIOT MAKER

        196126




        196126
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449386%2fnode-red-write-data-on-file%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Tangent Lines Diagram Along Smooth Curve

            Yusuf al-Mu'taman ibn Hud

            Zucchini