Skip to content

Not working with Node Red 4.x, spaming debug section in Node Red 3.1 using JSONata for Parameter configuration #2

Description

@tiffchros

After updating to Node-RED 3.1 (Node.js 20.x (LTS), node-red-contrib-simple-aws Version 0.1.6), the debug section is spammed with following text:
`"Error
at evaluateJSONataExpression (/usr/lib/node_modules/node-red/node_modules/@node-red/util/lib/util.js:775:18)
at Object.evaluateNodeProperty (/usr/lib/node_modules/node-red/node_modules/@node-red/util/lib/util.js:673:18)
at SimpleAWSNode._inputCallback (/home/appuser/.node-red/node_modules/node-red-contrib-simple-aws/simple-aws.js:89:43)
at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26
at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/util/lib/hooks.js:166:13)
at Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:202:11)
at Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:186:25)
at Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:494:10)
at deliverMessageToDestination (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:799..."

12.9.2023, 15:29:05msg : string[270]

"Deprecated API warning: Calls to RED.util.evaluateJSONataExpression must include a callback. This will not be optional in Node-RED 4.0. Please identify the node from the following stack and check for an update on npm. If none is available, please notify the node author."`

Assuming the warning is correct, this node will no longer work with Node-RED 4.0 and later.

The reason is, that I use jsonata for "Parameter":
configuration

Ugly workaround: Form complete parameters prior within a change node and use msg.payload in whole as "Parameter".

FYI: Pure JSON is also working in general, but in my case not possible. There are parameters within the pipeline the node has to use. There are no debug entries while using JSON / msg.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions