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

1 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

...able to use the clients After a bunch of testing (rooms, memberships, check for private message history, and most importantly - the custom emoticons!) nearly everything was looking as we needed, however...

455 views 2 6
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