Node-red write data on file
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.
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
add a comment |
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.
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
Update the question with the details of how you have configured thefile-out
node Also what version of Node-RED are you running?
– hardillb
Nov 23 '18 at 16:28
add a comment |
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.
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
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.
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
file node-red
edited Nov 26 '18 at 8:48
Gianluca Petralia
asked Nov 23 '18 at 15:31
Gianluca PetraliaGianluca Petralia
33
33
Update the question with the details of how you have configured thefile-out
node Also what version of Node-RED are you running?
– hardillb
Nov 23 '18 at 16:28
add a comment |
Update the question with the details of how you have configured thefile-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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 7 '18 at 3:10
AIOT MAKERAIOT MAKER
146114
146114
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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