# HTTP node overwrites msg, how to solve?

**URL:** https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982
**Category:** General
**Created:** [12 October 2023 19:38 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982 "2023-10-12T19:38:23Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![hazymat](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hazymat/32/108159_2.png) [@hazymat](https://discourse.nodered.org/u/hazymat)
#### Post date: [12 October 2023 19:38 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/1 "2023-10-12T19:38:23Z")

</div>

I'd like to pass something like the below to an HTTP request node, and have the HTTP node spit out its response including the additional properties:

```auto
msg = {
    "payload": "foo - replace this with output from HTTP node",
    "topic": "topic",
    "some_additional_param": "I want to keep this"
}

```

Is there a non-hacky way to do that ideally without storing values to context then retrieving them later?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [12 October 2023 19:47 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/2 "2023-10-12T19:47:39Z")

</div>

Did you just try it to see what happens?

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [12 October 2023 19:47 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/3 "2023-10-12T19:47:48Z")

</div>

I have never witnessed the HTTP request node do this, are you saying **some\_additional\_param** is no longer present in the **msg** after it hits the request node?

It would have been reported sooo many times if so.

I’m pretty sure i pass other properties though and they remain

---

<div class="post-metadata">

### Author: ![hazymat](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hazymat/32/108159_2.png) [@hazymat](https://discourse.nodered.org/u/hazymat)
#### Post date: [12 October 2023 21:11 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/4 "2023-10-12T21:11:17Z")

</div>

I did try it, although seeing these comments I’m going to test again. Perhaps I made a mistake or missed something. Will post back later. Thanks.

---

<div class="post-metadata">

### Author: ![hazymat](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hazymat/32/108159_2.png) [@hazymat](https://discourse.nodered.org/u/hazymat)
#### Post date: [12 October 2023 21:12 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/5 "2023-10-12T21:12:32Z")

</div>

Yes that’s what I’m saying although will test again later to confirm (ie possibly to confirm I missed something!)

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [12 October 2023 21:19 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/6 "2023-10-12T21:19:56Z")

</div>

If it does destroy the **msg** (best to put a debug node directly after - set to entire **msg** ), it will need raising on GitHub, as that’s a pretty tasty bug!

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [12 October 2023 23:10 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/7 "2023-10-12T23:10:24Z")

</div>

> [@hazymat](#):
>
> I’m going to test again

I just tested with a live weather API query, I added an extra msg.test before the http request, the output showed that the msg.test was still there in the output as expected.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68f3b11b081651a9dd777f73c16b584e1cef5449.png)

---

<div class="post-metadata">

### Author: ![hazymat](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hazymat/32/108159_2.png) [@hazymat](https://discourse.nodered.org/u/hazymat)
#### Post date: [13 October 2023 00:20 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/8 "2023-10-13T00:20:29Z")

</div>

Sorry to waste time here. Problem between chair and computer. ✅

---

<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: [27 October 2023 00:21 UTC](https://discourse.nodered.org/t/http-node-overwrites-msg-how-to-solve/81982/9 "2023-10-27T00:21:15Z")

</div>

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