Skip to content
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

The node reset entire msg #9

Open
busi91 opened this issue Jul 23, 2020 · 3 comments
Open

The node reset entire msg #9

busi91 opened this issue Jul 23, 2020 · 3 comments

Comments

@busi91
Copy link

busi91 commented Jul 23, 2020

Hi,
The node set the query result in msg.payload[0] object, but the entire msg object is emptied.
If i define a msg.data object in the input message of the node, in the output message msg.data is not present.
The topic is overvritten too (with the fixed string "RESULTS_IN_PAYLOAD").
Actually there are no way to use payload (or topic) data defined before use the node.

@radu103
Copy link
Owner

radu103 commented Apr 23, 2021

You can see that the msg obj is recreated, in this file https://github.com/radu103/node-red-contrib-sap-hana/blob/master/table_monitor.js at line 85
If you need data from before try to split the flow before the query as all the nodes will not forward data from input to output

@braunku
Copy link

braunku commented Sep 29, 2023

Won't install on Node-RED v3.0.2

023-09-29T17:43:43.409Z Install : node-red-contrib-sap-hana 1.2.4

2023-09-29T17:43:43.476Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-sap-hana@1.2.4
2023-09-29T17:43:44.656Z [err] npm
2023-09-29T17:43:44.658Z [err]
2023-09-29T17:43:44.658Z [err] WARN
2023-09-29T17:43:44.658Z [err]
2023-09-29T17:43:44.658Z [err] config
2023-09-29T17:43:44.659Z [err] production Use --omit=dev instead.
2023-09-29T17:44:23.120Z [err] npm
2023-09-29T17:44:23.121Z [err] ERR! code 132
2023-09-29T17:44:23.121Z [err] npm
2023-09-29T17:44:23.121Z [err] ERR!
2023-09-29T17:44:23.121Z [err] path /home/pi/.node-red/node_modules/@sap/hana-client
2023-09-29T17:44:23.126Z [err] npm
2023-09-29T17:44:23.127Z [err]
2023-09-29T17:44:23.127Z [err] ERR!
2023-09-29T17:44:23.127Z [err] command failed
2023-09-29T17:44:23.127Z [err] npm
2023-09-29T17:44:23.127Z [err] ERR!
2023-09-29T17:44:23.128Z [err] command
2023-09-29T17:44:23.128Z [err] sh -c -- node checkbuild.js
2023-09-29T17:44:23.128Z [err] npm
2023-09-29T17:44:23.128Z [err] ERR! Illegal instruction
2023-09-29T17:44:23.133Z [err]
2023-09-29T17:44:23.134Z [err] npm
2023-09-29T17:44:23.134Z [err] ERR! A complete log of this run can be found in:
2023-09-29T17:44:23.135Z [err] npm
2023-09-29T17:44:23.135Z [err] ERR! /home/pi/.npm/_logs/2023-09-29T17_43_44_550Z-debug-0.log
2023-09-29T17:44:23.177Z rc=132

@radu103
Copy link
Owner

radu103 commented Sep 29, 2023

please note that hana-client in node.js works on Node.Red hosted on linux machines/docker containers not on windows hosts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants