How to get log and track a work of JIRA Webhooks

Aleksandr Karev February 15, 2018

Hi!

How to get log and track a work of JIRA Webhooks? Is there any way to get the log?
I set up webhooks and made settings in how given here https://confluence.atlassian.com/jirakb/how-to-collect-data-for-atlassian-support-for-troubleshooting-jira-webhooks-397083035.html but I don't see any notes in atlassian-jira.log and any other log-file and on https://requestb.in site

Could somebody help me to figure out it?

2 answers

1 accepted

4 votes
Answer accepted
Brittany Wispell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2018
Aleksandr Karev February 19, 2018

You are absolutely right!
I checked and found lines in atlassian-jira.log files.

Thank you for reply!

Aleksandr Karev February 19, 2018

Hmm... there is a thing... I catch an error 422.

What does it mean? Where I can it find out?

2018-02-19 13:34:23,971 Web-Hook-Publisher-1 DEBUG admin 792x1607x1 hkjsfa 192.168.100.170 /secure/QuickCreateIssue.jspa [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Posting to web hook at 'http://192.168.101.28:8010/developers/gitlab-project/branches?branch=versss&ref=master&private_token=zzzzzzzzzzzzzzzzzzzz&user_id=user1&user_key=user1', body is:

.......

.......

2018-02-19 13:34:24,082 httpclient-callbacks:thread-8 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 422 when posting to web hook at 'http://192.168.101.28:8010/developers/gitlab-project/branches?branch=versss&ref=master&private_token=zzzzzzzzzzzzzzzzzzzz'

2018-02-19 13:34:24,082 httpclient-callbacks:thread-8 DEBUG anonymous     [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Body is

.......

Aleksandr Karev February 19, 2018

...I try to create a branch(with name of JIRA issue key) on GitLab server located in the local network using a webhook.

I think it's because of authentification problem. For example "private_token=" expression but without it I see the same error ...

I can't find what is this error 422 mean? =(

Aleksandr Karev February 20, 2018

I figured it out.
I just learn how REST API works. That’s why I thought the expression in curl and webhook is different. Actually it the same.

I used wrong URL in webhook: http://<address:port>/developers/gitlab-project...
I should use: http://<address:port>/api/v4/projects...

Brittany Wispell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2018

Hey @Aleksandr Karev

Sorry for the late reply! I'm glad you got it working! 

Have a great week! 

0 votes
Sneha Kumar February 2, 2023

I am looking for logging mechanism for webhook to understand that it failed or successfully sent the data to the receivers end. Is there any article to follow? Can we get alert generated in Jira itself in case of webhook failure?

Suggest an answer

Log in or Sign up to answer