Error NO RESPONSE OBJECT in HTTP RESPONSE

Hi everybody, I'm new here in Node-Red. I have a problen with HTTP-RESPONSE.
See the logic in the node FUNCTION:

let a_consulta={payload: (msg.payload)};
flow.set('a_consulta',a_consulta)

let x=a_consulta
let string_WEB = {payload: x}
console.log(x + " " + typeof(x))

return x;
----------------//-----------------
If my code is wrong, pls talk to me, I don't know JS so much.

The error show is NO RESPONSE OBJECT in the HTTP RESPONSE.
Pls, help me, I search in many places, but I don't find something good.
I appreciate so much since now.


Set Headers node

Hi.
You need to change your function to return the OG msg, as msg.res has to make it from the http in node, to the http response node.
Add debugs set to complete message object and you will see the msg.res property.

1 Like

Thx, i will try this.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.