# Http request to mqtt doesn't pass the content? manually injecton works!

**URL:** https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197
**Category:** Developing Nodes
**Created:** [25 September 2022 15:36 UTC](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197 "2022-09-25T15:36:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![themed00](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@themed00](https://discourse.nodered.org/u/themed00)
#### Post date: [25 September 2022 15:36 UTC](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197/1 "2022-09-25T15:36:52Z")

</div>

Hey node-red´ers

- A esp32 with an OLED sends every 10 sec to a MQTT Topic a message.
- Than my website generates data and makes a JSON.
- This json should send to MQTT OUT .

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/b/ab1ec4d3618c791a1594cce13548d2aa09cb4640.png)

The part at the bottom works. So my ESP are getting the Data which are manually injected.  
I'm also seeing the JSON in debug 7  
The HTTP Request works - but the data won't send to the matrixDaten Topic

What do I miss here? Any suggestions?  
Thanks

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [25 September 2022 16:01 UTC](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197/2 "2022-09-25T16:01:04Z")

</div>

My guess would be that you are using a subtly different topic for the two mqtt out nodes.

Of course it is only a guess because you haven't shown us either the JSON for your flow or the data.

Suggestion: add an mqtt in node to monitor all topics (#) and connect it to a debug node.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [25 September 2022 16:07 UTC](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197/3 "2022-09-25T16:07:50Z")

</div>

As well as showing us what is in the message to the mqtt nodes, feed the lower inject into the top mqtt node to check the problem is not there.

---

<div class="post-metadata">

### Author: ![themed00](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@themed00](https://discourse.nodered.org/u/themed00)
#### Post date: [25 September 2022 16:39 UTC](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197/4 "2022-09-25T16:39:46Z")

</div>

Thanks for your replys. It helped me, because so I know that my flow was not complete a mess 🙂

I changed the URL from the HTTP Request to: [https://jsonplaceholder.typicode.com/todos/1](https://jsonplaceholder.typicode.com/todos/1) - with this test url my flow works. Although my JSON is valid, I have to investigate once more.

Greetings

---

<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: [9 October 2022 16:40 UTC](https://discourse.nodered.org/t/http-request-to-mqtt-doesnt-pass-the-content-manually-injecton-works/68197/5 "2022-10-09T16:40:42Z")

</div>

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