Forums

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

Web Request Automation

Nawaaz SOHAWON
Contributor
September 21, 2021

Hi, 

I am setting up an automation using the Web Request action and I keep getting the below error message:

Send web request
Web request was sent, but timed out after 30 seconds on the remote host so the result is unknown (but most likely successful).
Any idea on a possible resolution?
Regards,
Nawaaz

1 answer

0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2021

Hello @Nawaaz SOHAWON,

Thank you for reaching out to Atlassian Community!

Just for a better understanding of the issue, I would like to know more details about the endpoint and the automation rule.

Is the endpoint accessible using other tools like Postman or Curl?

What is the web request URL?

Also, feel free to share a screenshot of the rule with us, just make sure to hide private information.

Kind regards,
Angélica

Nawaaz SOHAWON
Contributor
September 23, 2021

Hello @Angélica Luz 

Thanks for your response.

The endpoint is accessible through Postman.

I am now getting a 401 error and think it's because of the "Authorization" header. 

The web request URL is: https://api-worldcheck.refinitiv.com/v2/cases/screeningRequest and I cannot find the correct format for the "Authorization". Below are the details:

JIRA_WorldCheckOne_API.png

Thanks for your assistance.

Regards,

Nawaaz

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 24, 2021

Thank you for sharing, @Nawaaz SOHAWON.

If you are getting the 401 error, you need to use the Authorization header indeed. 

It will be like this one:

Screen Shot 2021-09-24 at 17.47.07.png

To generate that API Token, you need to encode the credentials with base64.

$ echo -n "email@domain.com:api-token" | base64

For more detailed information, please check the article below:

Please, take your time to test and let us know how it goes.

Nawaaz SOHAWON
Contributor
September 25, 2021

Hi @Angélica Luz ,

Thanks for all your assistance. Much appreciated.

I will try the above and let you know.

However, I've got 2 points concerning the api token generation:

  • I am send this web request to https://api-worldcheck.refinitiv.com/v2/cases/screeningRequest and not to an atlassian domain. Do this affect the Authorization format? I am asking since the response is sending this for Authorization: "Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
  • The format for this Authorization is "hmac-sha256". Does the "Encode to base64" cater for this?

Thanks again for all your help,

Regards,

Nawaaz

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 28, 2021

Hi @Nawaaz SOHAWON,

We support the ability to add whatever headers you like to the web request, but we don’t support doing the hmac encryption process ourselves. You would have to calculate the values for the Authorization, X-Authorization-Content-SHA256.

We found this website that might assist you to generate a HMAC-SHA256:

Nawaaz SOHAWON
Contributor
September 28, 2021

Thanks @Angélica Luz 

I already have the generated HMAC-SHA256.

Where do I input "X-Authorization-Content-SHA256"?

Regards,

Nawaaz

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 29, 2021

Hi @Nawaaz SOHAWON,

You can add it in the Headers on the web request action. It should be like the one below:

Screen Shot 2021-09-29 at 09.24.11.png

Suggest an answer

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

Atlassian Community Events