# Webhook to http-in

**URL:** <https://discourse.nodered.org/t/webhook-to-http-in/40864>\
**Category:** General\
**Created:** [12 February 2021 11:18 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864 "2021-02-12T11:18:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![KjellBrandes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kjellbrandes/32/36052_2.png) [@KjellBrandes](https://discourse.nodered.org/u/KjellBrandes)\
**Post date:** [12 February 2021 11:18 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/1 "2021-02-12T11:18:13Z")

</div>

Hi all, I'm trying to configure a Webhook to send data directly to myNodeRed env.  
I have set up a http-in in my NodeRed environment, exposed the env. to internet and tried to send data from Postman against the internet exposed URL and everything works as expected, http-in responds.

As another test I've used Slack's ability to set "Outgoing webhooks" app configured it to send to the same URL as when trying from Postman but nothing happens in NodeRed..  
Any one with experience or ideas regarding this?

I don't understand why the http-in don't react to the Webhook POST from Slack, I have tried an online service for webhooks and Slack are sending the post to that service, no problems.

Isn't this supported by the http-in node in NodeRed?

BR  
Kjell Brandes

---

<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:** [12 February 2021 11:21 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/2 "2021-02-12T11:21:30Z")

</div>

you probably set the http in node as GET, so a POST would be ignored.

---

<div class="post-metadata">

**Author:** ![KjellBrandes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kjellbrandes/32/36052_2.png) [@KjellBrandes](https://discourse.nodered.org/u/KjellBrandes)\
**Post date:** [12 February 2021 11:33 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/3 "2021-02-12T11:33:37Z")

</div>

It is in POST mode..  
I've actually have two http-in set up, one GET and one POST, just to be sure 🙂

Kjell

---

<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:** [12 February 2021 11:34 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/4 "2021-02-12T11:34:50Z")

</div>

And a debug after http in set to complete message object produces what info.

---

<div class="post-metadata">

**Author:** ![KjellBrandes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kjellbrandes/32/36052_2.png) [@KjellBrandes](https://discourse.nodered.org/u/KjellBrandes)\
**Post date:** [12 February 2021 11:42 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/5 "2021-02-12T11:42:17Z")

</div>

Thats the thing, the debug is dead silent when the POST comes, or should come from Slack.

---

<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:** [12 February 2021 11:45 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/6 "2021-02-12T11:45:50Z")

</div>

can you show slack setup

also try using rester addon in browser. I know it on firefox not sure if it is on other browsers. Can you share your flow as there may be a simple typo to.

---

<div class="post-metadata">

**Author:** ![KjellBrandes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kjellbrandes/32/36052_2.png) [@KjellBrandes](https://discourse.nodered.org/u/KjellBrandes)\
**Post date:** [12 February 2021 11:53 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/7 "2021-02-12T11:53:09Z")

</div>

This is the flow I'm using....

```auto
[{"id":"26e71535.11087a","type":"http in","z":"86c72ff3.5f4c4","name":"","url":"/slack","method":"post","upload":false,"swaggerDoc":"","x":630,"y":520,"wires":[["df54fc29.ad0cb","ed75bc34.bca2b","576cb4cb.446f2c"]]},{"id":"ed75bc34.bca2b","type":"http response","z":"86c72ff3.5f4c4","name":"response","statusCode":"200","headers":{},"x":950,"y":470,"wires":[]},{"id":"df54fc29.ad0cb","type":"debug","z":"86c72ff3.5f4c4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":870,"y":660,"wires":[]},{"id":"576cb4cb.446f2c","type":"debug","z":"86c72ff3.5f4c4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":600,"wires":[]}]

```

The setup on Slack...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2ce56b9e2021e24acd296b35d7b3b4993c77b930.jpeg)

The first URL in setup is an online service that actually reacts to the Webhook.

The thing is when posting towards my NodeRed env. from Postman that resides on "outside/internet" against my own domain the http-in reacts to the POST

Thanks!

---

<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:** [12 February 2021 12:02 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/8 "2021-02-12T12:02:53Z")

</div>

If you send to http in GET from your mobile, connect to mobile internet, from a browser. does it connect and respond?

Does Slack have a log or response message?  
Is Slack actually sending POST, may be PUT or other.  
Try with rester POST from inside your local network

---

<div class="post-metadata">

**Author:** ![KjellBrandes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kjellbrandes/32/36052_2.png) [@KjellBrandes](https://discourse.nodered.org/u/KjellBrandes)\
**Post date:** [12 February 2021 12:10 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/9 "2021-02-12T12:10:48Z")

</div>

Hmmm... I got it working!!!

I actually just restarted my NodeRed service and all of a sudden it started to respond from Slack!!

Thanks so much for you're help!  
It's always good to interact, just for getting all the questions I didn't come up with on my own 🙂

I can't understad though what might have been "wrong" in NodeRed before the service restart.....

Thanks again!

Kjell

---

<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:** [12 February 2021 13:05 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/10 "2021-02-12T13:05:44Z")

</div>

maybe slack need time to set up webhook.

---

<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:** [13 April 2021 13:06 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864/11 "2021-04-13T13:06:30Z")

</div>

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