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

Unable to authenticate using JIRA CLI v 6.7.1

I've just donloaded the CLI 6.7.1 distribution. When attempting to run a CLI command for JIRA, I receive an 401 response code on the licenses validation check.

Response code: 200, message: null, url: https://jira.XXX.com/rest/auth/1/session
Response code: 401, message: null, url: https://jira.XXX.com/rest/org.swift.jira.cli/latest/validatelicense
Retry request on 401 error.
Response code: 401, message: null, url: https://jira.XXX.com/rest/org.swift.jira.cli/latest/validatelicense

Remote error: User is not authorized to perform the request. Response code: 401.
org.swift.common.cli.CliClient$RemoteNotAuthorizedException: User is not authorized to perform the request. Response code: 401.
	at org.swift.common.cli.helpers.DefaultRemoteHelper.handleBadResponseCode(DefaultRemoteHelper.java:1031)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithUrlConnection(DefaultRemoteHelper.java:858)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithFullUrl(DefaultRemoteHelper.java:668)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithUrlConnection(DefaultRemoteHelper.java:852)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithFullUrl(DefaultRemoteHelper.java:668)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequestWithFullUrl(DefaultRemoteHelper.java:639)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequest(DefaultRemoteHelper.java:622)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequest(DefaultRemoteHelper.java:611)
	at org.swift.common.cli.helpers.DefaultRemoteHelper.restRequest(DefaultRemoteHelper.java:595)
	at org.swift.common.cli.helpers.AppfireRemoteHelper.getServerInfo(AppfireRemoteHelper.java:117)
	at org.swift.common.cli.DefaultRemoteClient.validateLicense(DefaultRemoteClient.java:253)
	at org.swift.jira.cli.JiraClient.validateLicense(JiraClient.java:2466)
	at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:766)
	at org.swift.common.cli.DefaultRemoteClient.process(DefaultRemoteClient.java:506)
	at org.swift.common.cli.CliClient.doWork(CliClient.java:572)
	at org.swift.jira.cli.JiraClient.main(JiraClient.java:172)
URL requested: https://jira.XXX.com/rest/auth/1/session

We have a valid license.

We have the connector installed and the license is valid.

We are JIRA 7.3.5 Data Center Server install.

If I go to the URL that validates the license, I get a proper response:

{"status":true,"message":"Bob Swift Atlassian Add-ons - JIRA CLI Connector has a valid license.","product":"JIRA","version":"7.3.5","build":"73016","buildDate":"2017-04-19T00:00:00.000-0400","time":"2017-07-10T13:28:05.731-0400","timeZone":"Eastern Standard Time","title":"XXX JIRA","baseUrl":"https://jira.XXX.com","connectorVersion":"6.7.0"}

1 answer

Can you post the command you're running? Please obfuscate the password. :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Marketplace Spotlight: Manage your assets with asset management apps

  The role of IT professionals has become increasingly difficult over the last decade. Our organizations work in an increasingly software-powered world and IT professionals are expected to not...

233 views 3 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you