JIRA Automation - Web Request to an OData Endpoint

Lars Swart
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 3, 2023

Hi, 

I have an OData Endpoint which i can perfectly access via Postman. If I try it with the Automation Web Request function i got an 403 error with this text in the audit log 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta type="copyright" content="Copyright (C) 1996-2022 The Squid Software Foundation and contributors"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- /* * Copyright (C) 1996-2022 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ /* Stylesheet for Squid Error pages Adapted from design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License */ /* Page basics */ * { font-family: verdana, sans-serif; } html body { margin: 0; padding: 0; background: #efefef; font-size: 12px; color: #1e1e1e; } /* Page di...

 

I used the same base64 coded Basic Auth Key that Postman uses. 

Is there maybe a difference or a little variation on how to do it via the web request function?

Here is a screenshot of the postman configuration

postman.PNG

And here of the automation web request

webrequest.PNG

 

Do you have an idea why it isn't working?

1 answer

1 accepted

1 vote
Answer accepted
Lars Swart
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 3, 2023

I just found a ticket that suggests that only few ports are supported

[JRACLOUD-40911] Support webhooks to ports other than 443 and 80 - Create and track feature requests for Atlassian products.

The list seems to be:

443 6017 7990 8060 8080 8085 8090 8443 8444 8900 9900

 

We changed the API Port and now it works :-)

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