Error when trying to send IM in Node-RED
AnsweredHello,
I'm trying to make some very basic tests in the Node-RED environment. In this case I'm trying to use the Send_IM node to send an IM to a user, but I get an error.
In my Node-RED project have a node that injects to the Send_IM node a json code like:
{
"payload": {
"content": "Hello",
"destJid": "5b9...9c@sandbox-all-in-one-prod-1.opentouch.cloud"
}
}
This code is received by the Send_IM node, that is configured with the correct credentials (Broker).
However, whenever I inject that json, the Send_IM block throws this error:
"TypeError: Object.Assign is not a function"
I read details about these Node-RED nodes syntax from:
https://flows.nodered.org/node/node-red-contrib-ale-rainbow
Any help is appreciated.
Thank you
-
Official comment
Problem was: by using INJECT Node, you should only put inside
{
"content": "Hello",
"destJid": "5b9...9c@sandbox-all-in-one-prod-1.opentouch.cloud"
}as Inject affect it to payload
Comment actions
Please sign in to leave a comment.
Comments
3 comments