Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

[Jira Automation] Rest API Get returns 401

Huynh BKFET August 16, 2023

Dear Atlassian community,

 

I am currently having one error with sending a GET api (without Header):

It returns:

 


Action details:

Send web request

Error publishing webhook. Response HTTP status:
401
Error response HTTP body:
{"errorMessages":["You do not have the permission to see the specified issue.","Login Required"],"errors":{}}

 

First I thought this is because of authorization, then I used Basic Authentication with API token, but I faced the same issue with longer message:


Send web request

Error publishing webhook. Response HTTP status:
401
Error response HTTP body:
<html> <head> <title>Unauthorized (401)</title> <!--[if IE]><![endif]--> <script type="text/javascript"> (function() { var contextPath = ''; var eventBuffer = []; function printDeprecatedMsg() { if (console && console.warn) { console.warn('DEPRECATED JS - contextPath global variable has been deprecated since 7.4.0. Use `wrm/context-path` module instead.'); } } function sendEvent(analytics, postfix) { analytics.send({ name: 'js.globals.contextPath.' + postfix }); } function sendDeprecatedEvent(postfix) { try { var analytics = require('jira/analytics'); if (eventBuffer.length) { eventBuffer.forEach(function(value) { sendEvent(analytics, value); }); eventBuffer = []; }

 

Could you tell me why?

3 answers

1 accepted

1 vote
Answer accepted
Huynh BKFET August 21, 2023

Some IT configuration blocking the HTTP request.

Now able to send the request.

2 votes
Kurt Klinner
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.
August 16, 2023

Hi @Huynh BKFET 

 

can you share the request that you are sending and how your authentication part looks like?

Cheers

Kurt

Huynh BKFET August 21, 2023

Thanks Kurt,
The problem is that IT guys blocked some thing.
Now I am able to send HTTP GET.

0 votes
vincenzo_spatafora June 10, 2024

Dear @Huynh BKFET@Kurt Klinner,

I have created a Jira Automation Rule for editing (PUT) in a specifc confluence page the value of a field (called in my case "% Completion").

But you get an error message saying:

Error publishing webhook. Response HTTP status: 401

And NOTHING has been blocked from IT Service.

Do you see a reason for that?

Thanks in advance, Vincenzo.

  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events