JIRA WebHook firing, but resulting in 401

I am currently trying to use a JIRA WebHook to POST issue updates to an endpoint. (JIRA Server v7.2.7) The Jira log says:

httpclient-callbacks:thread-13 WARN anonymous     [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 401 when posting to web hook at 'https://{mydomain}.com:443/{path}'

The strange thing is, the error isn't coming from the server because there's no log entry for the 401. Also, if I spin up a simple localhost and change the URL in JIRA, then it works. Any idea why the WebHook's failing to post using https? Or if that's even the issue?

1 answer

1 accepted

0 votes

Hi Clayton,

There is a bug that might be related to this issue over at JRASERVER-42579

I can't say for sure that this applies in your case yet, because I think you have obscured the parts of the URL that might contain this information, but I am interested to see if perhaps you can share more of the URL you are using for this webhook.   I am not particularly interested in the domain or subdomain of the URL, but the rest of the syntax could be a factor here.

While that bug is directly concerning the conversion of a space character into the string of '%20', my concern is to see if any other parts of your URL contain any '%' characters as a means to substitute characters.   The site https://ascii.cl/ lists a Hex code conversion chart where certain characters can get converted into hex.   So your space can be converted into a %20 or a / can be converted into a %2F.   I am interested to learn more about the specific URL you are using, and then seeing if Jira might be converting the characters here into a hex code in order to be able to make this webhook call.   The concern here is that if this conversion is taking place that this might be causing a http error code of 401.


That was exactly the issue. Thanks for the quick reply.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,039 views 13 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot