-
Notifications
You must be signed in to change notification settings - Fork 7
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
msg.payload should be an object containing the query arguments. #9
Comments
Just use a fynction object and there add the code and you inject node should just trigger it as per the example at https://flows.nodered.org/node/node-red-contrib-stackhero-mysql: msg.topic = 'SELECT * FROM |
Switching a working flow from the (node-red-node-mysql) node to this, I encounter the same error. It seems it's because the (node-red-node-mysql) node accepts an array for msg.payload arguments. I cannot seem to format this to work as an object. Any suggestions? //Works with (node-red-node-mysql): //Causes sql syntax error with MariaDB: //Complete function node: |
//Solution was changing this: |
Since a few days I get an error message with an empty payload, when trying to request data from my database. The flow was working before without issues providing the request via the message topic. I'm running 1.0.5.
This issue was reported before and appeared to be solved with version 1.0.3. (#1)
What do I need to put into the payload when I want to retrieve data from the db?
The text was updated successfully, but these errors were encountered: