# Http-response have to work with http-in?

**URL:** <https://discourse.nodered.org/t/http-response-have-to-work-with-http-in/88494>\
**Category:** General\
**Created:** [4 June 2024 08:35 UTC](https://discourse.nodered.org/t/http-response-have-to-work-with-http-in/88494 "2024-06-04T08:35:58Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [5 June 2024 06:20 UTC](https://discourse.nodered.org/t/http-response-have-to-work-with-http-in/88494/21 "2024-06-05T06:20:29Z")

</div>

> [@TotallyInformation](#):
>
> mqtt-in -\> flow-var

And How is that returned to the http response, PLEASE EXPLAIN as I am not seeing it. it does return the last call to mqtt in but not the new one.

The http response has already been returned by the time the mqtt in receives its data and the change node has saved it to context, and that is without any delay or latency in the mqtt call.

 ![chrome_screenshot_5 Jun 2024 07_19_40 BST](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e20a62326bd19355d2d73fce8d3cb9c9a588979a.png)

I don't think that, because I am not seeing that.

---

<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:** [5 June 2024 11:56 UTC](https://discourse.nodered.org/t/http-response-have-to-work-with-http-in/88494/22 "2024-06-05T11:56:20Z")

</div>

> [@E1cid](#):
>
> The http response has already been returned by the time the mqtt in receives its data and the change node has saved it to context, and that is without any delay or latency in the mqtt call.

You are still assuming that the mqtt output from the http-in is triggering an mqtt output that is needed for the http-response. That makes no sense to me as there are loads of timing issues that will potentially cause hard to track down errors. Also the original post makes no mention (unless I missed it) of some other intermediate flow that would orchestrate the mqtt response which would be needed.

If you take your assumption out, you have a more normal situation where the mqtt out is not related to the http-response - maybe it is recording requests for example.

Without further input from the originator of this thread, we cannot know for sure what is actually happening. But from the image shared, there is no indication of any other processes. So either the flow is incorrect because it makes no sense to directly connect an mqtt output to an mqtt input, or my approach will return to the http-request the latest data from the mqtt-in.

---

<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:** [5 June 2024 12:17 UTC](https://discourse.nodered.org/t/http-response-have-to-work-with-http-in/88494/23 "2024-06-05T12:17:47Z")

</div>

> [@TotallyInformation](#):
>
> You are still assuming

No I am stating/asking how, if the http in needs to be returned to the http response node, how does your diagram do that. I am not asking for the OP, I am clearly asking for myself. But you clearly do not want to respond to my question in a responsive manner.

I will leave this here now as it is clearly pointless asking you to respond to my question.

---

<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:** [19 June 2024 12:18 UTC](https://discourse.nodered.org/t/http-response-have-to-work-with-http-in/88494/24 "2024-06-19T12:18:32Z")

</div>

Closed on 19 June 2024 12:18 UTC

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

[Previous page](https://discourse.nodered.org/t/http-response-have-to-work-with-http-in/88494.md?page=1)
