Outgoing webhook returns an empty request

Hi. Help me please!

In my addon descriptor, I set a webhook handler as in the example:

"webhook": [{
          "url": "https://mysite.com/hipchat/echo.php",
          "pattern": "^/[eE][cC][hH][oO]",
          "event": "room_message",
          "key": "echo_message",
          "authentication": "none",
          "name": "Echo"
        }]

But after installing the add-on, and after sending command "/echo", my script "echo.php" does not receive any data, only empty request. Why?

1 answer

1 accepted

This widget could not be displayed.

Hi, could you check what data is being sent? You can use http://mockbin.org/ service to define the url for the webhook and it will show you the payload when the webhook is triggered.

Hi Anatoli. Many thanks, this service has helped to solve the problem! I wrongly tried to get data in $_POST and $_REQUEST. Correctly use

$entityBody = file_get_contents('php://input');

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Aug 10, 2018 in Hipchat

What should I think about when migrating HipChat to Slack?

...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...

246 views 1 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you