Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Webhook error trapping

Jennifer Gardner July 10, 2020

Hi,

I am using Jira Service Desk Cloud and will be setting up a new webhook.

How do I go about viewing/trapping any errors that might occur when the webhook fails to make a post to the defined URL?

Thanks

Jenny

1 answer

1 accepted

0 votes
Answer accepted
Sachin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2020

Hello @Jennifer Gardner , I know that for Jira Server you can Collect data to troubleshoot Webhook failure in Jira server . However, for Jira Cloud I found this

Jira Cloud Webhooks 

"Retry policy

If a webhook is sent to its callback URL but fails, Jira Cloud will attempt to resend it up to five times. Each subsequent attempt is delayed with a randomized exponential back-off algorithm. The first retry occurs after at least 10 seconds, and the last between 15 and 30 minutes from the first failure.

Retries are attempted when any of the following are true:

  • the callback server returns any of the following status codes: 408, 409, 425, 429, 5xx.
  • the connection fails or times out.

This means that some webhooks might be delivered more than once (if the delivery acknowledgment fails).

Every webhook contains the X-Atlassian-Webhook-Identifier header that provides an identifier for a webhook. This identifier is unique within a Jira Cloud tenant and is the same across retries. After you have processed a webhook, you can use the identifier to filter out retries.

The X-Atlassian-Webhook-Retry header with the current retry count is included with webhooks that have been retried. Monitor this header and cross-reference it with the callback server logs to stay on top of any unexpected reliability problems.

Webhooks that are not delivered after the maximum number of retries can be found with the Get failed webhooks operation."

Also, please feel free to vote and comment on these feature requests:

JRACLOUD-39361 
JRACLOUD-41388 

Best,
Sachin.

Jennifer Gardner July 13, 2020

Hi Sachin,

Thank you for your informative response.

Unfortunately for me, this doesn't give me what I was hoping for i.e. Get failed webhooks operation - 'Permissions required: Only Connect apps can use this operation.'

I'm not using a connect app.

Thank you for your help.

 

Kindest Regards

Jenny

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events