It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

cli getVersion and updateVersion Connection refused: connect

Hello i'm trying to run some script with jira-cli and getting an error

when running simple request with jira-cli

java -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttp.proxyUser=user -Dhttp.proxyPassword=password -jar jira-cli-3.2.0.jar --server --user user --password xxx -v --action getVersion --project "project" --version "01"

it fails with:

Server address:

Successful login to: by user: user.

jiraRelease: 4.3.4

URL requested:***

Request type: GET

Content type: application/json

KC8nzEacG7 logged out.


Client error: Invalid request: Connection refused: connect

org.swift.common.cli.CliClient$ClientException: Invalid request: Connection refused: connect

        at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(

        at org.swift.common.cli.AbstractRestClient.restRequest(

        at org.swift.jira.cli.JiraRealRestClient.getVersion(

        at org.swift.jira.cli.JiraClient.getVersion(

        at org.swift.jira.cli.JiraClient.handleRequest(

        at org.swift.common.cli.AbstractRemoteClient.process(

        at org.swift.common.cli.CliClient.doWork(

        at org.swift.jira.cli.JiraClient.main(

Thank you!

1 answer

Go to a browser and login to the site. Then copy in the url and see what it says:

Here is the output:


That looks right. Now, logout, and then try the following with the correct password:***

it gave me the same output


I get this error only when i try to use getVersion or updateVersion. all other actions seems work well

i just tried latest version of cli 3.3.0 and now it seems working. at least getVersion. i will try with update version

Thank you Bob for your time

Puzzling. It might have been a redirection problem - did the url change after you entered the value in the browser? In any case, it is good you have it working now.

The link doesn't get redirected anywhere, it is the same after page loading.

I did some tests and seems that getVersion and updateVersion doesn't work when i use cli through proxy

It works weel without proxy, but in my case i have to use it only with proxy

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 03, 2019 in Marketplace Apps

How to estimate projects more accurately?

Gaining insight into your team’s effectiveness and choosing the right estimation technique.   Estimating projects is hard. It is because people have the tendency to underestimate the time thin...

278 views 2 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you