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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

143 views 0 4
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