# Error NO RESPONSE OBJECT in HTTP RESPONSE

**URL:** <https://discourse.nodered.org/t/error-no-response-object-in-http-response/80445>\
**Category:** General\
**Created:** [9 August 2023 19:37 UTC](https://discourse.nodered.org/t/error-no-response-object-in-http-response/80445 "2023-08-09T19:37:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugomuniz](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@hugomuniz](https://discourse.nodered.org/u/hugomuniz)\
**Post date:** [9 August 2023 19:37 UTC](https://discourse.nodered.org/t/error-no-response-object-in-http-response/80445/1 "2023-08-09T19:37:08Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b80a62b15953dce25d6c666fcb73625cc4063e8b.png)  
Set Headers node  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/5/c5112e85d98907901a72ca8c1e1242b248fb8f51.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [9 August 2023 19:44 UTC](https://discourse.nodered.org/t/error-no-response-object-in-http-response/80445/2 "2023-08-09T19:44:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hugomuniz](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@hugomuniz](https://discourse.nodered.org/u/hugomuniz)\
**Post date:** [9 August 2023 19:49 UTC](https://discourse.nodered.org/t/error-no-response-object-in-http-response/80445/3 "2023-08-09T19:49:34Z")

</div>

Thx, i will try this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 October 2023 19:50 UTC](https://discourse.nodered.org/t/error-no-response-object-in-http-response/80445/4 "2023-10-08T19:50:25Z")

</div>

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