Why do I get 401 Client Error when using a webhook to post to Microsoft Flow? Edited

We have seen this issue since the beginning of last month, and we have not been able to get the webhook to work with Flow directly.

I created a temporary solution, where I made a NodeJS Server that would receive the webhook events and would then post to Microsoft Flow. Although this worked fine, this is not a solution we would like, since we would have to host our NodeJS Server. Note, when I opened up a POST request on my node server (using express via `app.post`, I noticed that JIRA would not send the events to me via the webhook. It didn't work until I used `app.all`, which means it would accept all requests (GET, PUT, POST, and DELETE). Once all requests were there, JIRA started to work fine.

Because we received this error on the Cloud product as well. This is when we tried to do this same thing on my self-hosted server. We noticed that it did the same thing when talking to flow directly. it gave the following error -- which I'm sure, the cloud version is doing the same. In the log found in "C:\Program Files\Atlassian\Application Data\JIRA\log\atlassian-jira.log", I found this error occuring everytime a new event occurs in JIRA:

2017-09-28 10:44:37,802 httpclient-callbacks:thread-1 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 401 when posting to web hook at 'https://prod--61-westus-logic-azure-com.mstools.apps.verisk.com:443/workflows/ba4f06a4bb9e447fa97020d0dd9a5aa5/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=j75YAyjbSkzTQ2iLA3ZU5H9rVDEMHpSH-2wSraNNDDc'

Steps to reproduce:
1. Create a webhook in JIRA
2. use this as the url for the webhook to POST to:
3. Select all checkboxes in the webhook config.
4. Click save
5. Create or update an issue in any board.
6. The logs should be displaying the error above

This is a very important thing to fix for us, since we do not want to host a "middle-man" application to integrate with JIRA. I have a few screenshots in the description, as well as the log file.

1 answer

1 accepted

1 vote

I found a similar support case for Jira where another user found a solution to a similar problem by adjusting the webhook URL to replace the '%2F' strings in that URL with '/' characters (no quotes for either).   Try changing your URL from:




If that doesn't resolve this, then I find that the use of the https://requestb.in/ website to be a helpful tool just to make sure that Jira can reach other sites when a webhook is triggered.  I am interested to see if you can try to use that site instead to test this out, then see what that site shows for the webhook received to learn more about this.  That site can help display other information about the request received.

Oh my gosh! Thank you @Andrew Heinzer!


This worked right off the bat!

Hello Andrew,


We are doing integration with ServiceNow and when I try to connect to ServiceNow it throws me an error

httpclient-callbacks:thread-108 WARN anonymous     [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 401 when posting to web hook at '______https://xxxxx.service-now.com/api/now/import/u_jira


We even tried,_____https://requestb.in  POST /tfkb9otf?user_id=jira_user&user_key=jira_user



user_key: jira_user

user_id: jira_user



Cf-Visitor: {"scheme":"https"}

Host: requestb.in

Accept-Encoding: gzip

Total-Route-Time: null

Cf-Ipcountry: US

X-Request-Id: e61fd583-7a42-4412-981b-96033dfc4fce

Cf-Ray: 3fe8e634fc057906-LAH

Accept: */*

Connect-Time: 5000

Connection: close


Content-Length: 0

User-Agent: Atlassian HttpClient 0.23.3 / JIRA-7.3.0 (73011) / Default

Via: 1.1 localhost (Apache-HttpClient/4.4.1 (cache)), 1.1 vegur




Suggest an answer

Log in or Join to answer
Community showcase
Bridget Sauer
Published Mar 05, 2018 in Jira Software

Jack Graves: Real Ale enthusiast with a knack for Jira Software implementation

@Jack Graves first caught our eye with his incredible breakdown of what, in his opinion, can make or break a Jira software implementation. (Read his thoughts on this thread)! In this followup Sh...

65,678 views 4 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
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