Jira Automation sending POST request to python script

Sureshkumar S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2023

When I send a post request to python using Jira automation "SEND Web Request: POST" I got the below error.

Server: squid

Mime-Version: 1.0

Date: Fri, 22 Sep 2023 20:06:16 GMT

Content-Type: text/html;charset=utf-8

Content-Length: 3114

X-Squid-Error: ERR_ACCESS_DENIED 0

Vary: Accept-Language

Content-Language: en

X-Cache: MISS from ip-10-125-126-94.net.atlassian.com

Via: 1.1 ip-10-125-126-94.net.atlassian.com (squid)

Connection: keep-alive

1 answer

0 votes
Marcus Jones
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 22, 2023

The solution is to add the port 5000 in /etc/squid/squid.conf :

acl SSL_ports port 443 563 5000

However, adding to the SSL_Port section is OK, but it means everyone gets access to it.

You can restrict even further, so that only a single IP address, or multiple IP addresses can only access this port! Just in case you don't want the whole network to have access.

Sureshkumar S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2023

Sorry, Marcus. This is my 1st time developing an API program. Please elaborate on how we need to configure /etc/squid/squid.conf. My code is my local machine (Windows), and I exposed my local host online using the Flask library. I want to send the post request to my local dev env. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events