Bob Swift Atlassian Command Line Interface (CLI) 401 Response Code

Darryl St_ Pierre
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.
September 10, 2018

Running a trial of Confluence Cloud and Bob Swift CLI. When I run a command, for example getSpaceList, it returns the error: Remote error: User is not authorized to perform the request. Response code: 401.

I am both an admin and site admin, so it should not be a permissions issue. The CLI Connector is installed, and I'm running the 8.0 client.

We have an older version running in our Confluence server implementation, and it works fine.

Troubleshooting steps?

Verbose out, if it helps:

Response code: 401, message: Unauthorized, url: https://OurSiteName.atlassian.net/wiki/rpc/json-rpc/confluenceservice-v2/getServerInfo

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.DefaultRequestHelper.handleBadResponseCode(DefaultRequestHelper.java:1241)
at org.swift.common.cli.helpers.DefaultRequestHelper.makeRequestWithUrlConnection(DefaultRequestHelper.java:918)
at org.swift.common.cli.helpers.DefaultRequestHelper.makeRequestWithUrlConnection(DefaultRequestHelper.java:912)
at org.swift.common.cli.helpers.DefaultRequestHelper.makeUrlRequest(DefaultRequestHelper.java:711)
at org.swift.common.cli.helpers.DefaultRequestHelper.makeRequest(DefaultRequestHelper.java:684)
at org.swift.confluence.cli.helpers.RpcRequestHelper.rpcRequest(RpcRequestHelper.java:74)
at org.swift.confluence.cli.ConfluenceClient.getServerInfoAlternate(ConfluenceClient.java:298)
at org.swift.confluence.cli.ConfluenceClient.getRemoteServerInfo(ConfluenceClient.java:273)
at org.swift.confluence.cli.ConfluenceClient.getServerInfo(ConfluenceClient.java:231)
at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:789)
at org.swift.common.cli.DefaultRemoteClient.process(DefaultRemoteClient.java:740)
at org.swift.common.cli.CliClient.doWork(CliClient.java:674)
at org.swift.common.cli.CliClient.doWork(CliClient.java:631)
at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:179)

1 answer

0 votes
Darryl St_ Pierre
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.
September 10, 2018

added verbose output above

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events