# Http in node not receiving body from Webhook

**URL:** <https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181>\
**Category:** General\
**Tags:** http-in\
**Created:** [14 August 2024 18:02 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181 "2024-08-14T18:02:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![keckepro](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@keckepro](https://discourse.nodered.org/u/keckepro)\
**Post date:** [14 August 2024 18:02 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/1 "2024-08-14T18:02:02Z")

</div>

Hi  
Im trying to use nodered as a Zapier/make.com for cheap people 🙂  
Have had great success so far with making http in - out and doing whatever I want in between, but now I have stumbled over something I can not figure out.

I am using a service called Ragic where I have created a Webhooks that post to an endpoint in Nodered. (POST). The node in nodered receives the message, but for some reason the BODY of the request is not there.

I have other http in POST nodes from other services that is working so thought it was something wrong with the service from Ragic, but when I try it out on weebhook.site it works and message is received.

Some printscreens below. Anyone who can help to figure this out?  
I am stuck..

The received Webhooks (without body)

 ![CleanShot 2024-08-14 at 19.55.25@2x](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/2/02203aa7602167bbf88bf44b46b8bb032a8de233.png)

The same Webhooks received in Webhooks.site service

 ![CleanShot 2024-08-14 at 19.58.58@2x](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/5/6525e4129ba387015a9df1bcaae65aeeedff82d2.png)

Im running on AWS EC, Ubuntu, V 4.0.1

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [15 August 2024 04:37 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/2 "2024-08-15T04:37:49Z")

</div>

What do you see under `msg.req.params` ?

---

<div class="post-metadata">

**Author:** ![kitori](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kitori](https://discourse.nodered.org/u/kitori)\
**Post date:** [15 August 2024 09:49 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/3 "2024-08-15T09:49:16Z")

</div>

Interestingly, if i change the `header.content-type` to `application/json; utf8` i get a 500 response.  
if i just set in to `application/json`, no errors.

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a07df3f0e0863b87a7e860a78eea886d36cd5eb1.png)

```auto
[{"id":"b01e2692a2185d0f","type":"inject","z":"b001c4b1107b373a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"item\":\"abc\",\"item-2\":1}","payloadType":"json","x":330,"y":420,"wires":[["8402eece9cc5dfec"]]},{"id":"ce91f20a3a70105e","type":"http in","z":"b001c4b1107b373a","name":"","url":"/abctest123","method":"post","upload":false,"swaggerDoc":"","x":410,"y":300,"wires":[["0fe8486117b0b066","efe912a4186e9754"]]},{"id":"0fe8486117b0b066","type":"debug","z":"b001c4b1107b373a","name":"debug 454","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":650,"y":320,"wires":[]},{"id":"69ca006baebb0259","type":"http request","z":"b001c4b1107b373a","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"127.0.0.1:1880/abctest123","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":870,"y":460,"wires":[["6db7604fa9279cb5"]]},{"id":"6db7604fa9279cb5","type":"debug","z":"b001c4b1107b373a","name":"debug 455","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1070,"y":460,"wires":[]},{"id":"efe912a4186e9754","type":"http response","z":"b001c4b1107b373a","name":"","statusCode":"","headers":{},"x":630,"y":280,"wires":[]},{"id":"8402eece9cc5dfec","type":"function","z":"b001c4b1107b373a","name":"application/json","func":"msg.headers = {\n \"content-type\" : \"application/json\"\n}\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":420,"wires":[["69ca006baebb0259"]]},{"id":"70dc6c0dad91eaa7","type":"function","z":"b001c4b1107b373a","name":"application/json; utf8","func":"msg.headers = {\n \"content-type\" : \"application/json; utf-8\"\n}\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":460,"wires":[["69ca006baebb0259"]]},{"id":"996da7fe49d6a872","type":"function","z":"b001c4b1107b373a","name":"application/json; charset=utf8","func":"msg.headers = {\n \"content-type\" : \"application/json; charset=utf-8\"\n}\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":570,"y":500,"wires":[["69ca006baebb0259"]]},{"id":"50ae0b8f1a201900","type":"inject","z":"b001c4b1107b373a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"item\":\"abc\",\"item-2\":1}","payloadType":"json","x":310,"y":460,"wires":[["70dc6c0dad91eaa7"]]},{"id":"e9a73537e7191510","type":"inject","z":"b001c4b1107b373a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"item\":\"abc\",\"item-2\":1}","payloadType":"json","x":310,"y":500,"wires":[["996da7fe49d6a872"]]}]

```

---

<div class="post-metadata">

**Author:** ![keckepro](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@keckepro](https://discourse.nodered.org/u/keckepro)\
**Post date:** [15 August 2024 14:18 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/4 "2024-08-15T14:18:59Z")

</div>

Hi  
Its empty.  
By the way, I have to have "accept file uploads" marked otherwise I do not get the Webhooks in at all

---

<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:** [15 August 2024 16:12 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/5 "2024-08-15T16:12:49Z")

</div>

I must admit - I can't pinpoint this.

One thing I am interested in, is the length?  
I know the web hook site is showing a length header, but is it present in Node RED?

`Content-Length` - and does it match the body length?  
and to ask the obvious - you're not fiddling with it before the debug?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [15 August 2024 16:21 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/6 "2024-08-15T16:21:09Z")

</div>

> [@kitori](#):
>
> Interestingly, if i change the `header.content-type` to `application/json; utf8` i get a 500 response.  
> if i just set in to `application/json`, no errors.

It works here.

The json header should be like; ` "content-type": "application/json; charset=utf-8"` (you missed the charset=)

---

<div class="post-metadata">

**Author:** ![kitori](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kitori](https://discourse.nodered.org/u/kitori)\
**Post date:** [19 August 2024 07:10 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/7 "2024-08-19T07:10:22Z")

</div>

i know, because the screenshot from @keckepro  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/1/4167052261763a01dbed60d72b6fdd83fc0c36aa.png)

---

<div class="post-metadata">

**Author:** ![keckepro](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@keckepro](https://discourse.nodered.org/u/keckepro)\
**Post date:** [19 August 2024 11:49 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/8 "2024-08-19T11:49:54Z")

</div>

Hi  
For info I hade to bite the bullet and use [make.com](http://make.com) integration instead 😩

---

<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:** [17 November 2024 11:50 UTC](https://discourse.nodered.org/t/http-in-node-not-receiving-body-from-webhook/90181/9 "2024-11-17T11:50:29Z")

</div>

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