Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem statement

The CLI client is seeing a remote error while accessing the cloud instance, as part of the platform changes related to GDPR.

...

Code Block
languagebash
themeMidnight
Remote error: User is not authorized to perform the request. Response code: 401.


Code Block
languagebash
themeMidnight
Remote error: Unknown error occurred on the server. Response code: 501.


Environment

ApplicationConfluence, JIRA
Version Cloud

...

Panel
bgColor#f9ecc5

The error is caused due to the recent changes in the authentication parameters for the Cloud instance, as recommended by the GDPR guidelines issued by Atlassian

Problem Determination

  1. For some Confluence Cloud API removals, you may see the following if you do not have an updated CLI client:
    1. Remote error: Action disallowed. Response code: 403.
    2. Remote error: Unknown error occurred on the server. Response code: 501.
  2. If you are NOT using the email address and API token for your user credentials for accessing Cloud sites (see Authentication), you will likely receive: Remote error: User is not authorized to perform the request. Response code: 401.
  3. Even when using an API token, we have cases of 401 errors caused by older API tokens. Revoke the existing token and generate a new token. Then execute the CLI command.

Solution

CLI users must upgrade their CLI client to the latest version available to rollout GDPR platform changes. The Username and Password parameters accept only user email address and token respectively. 

...

Code Block
java -jar D:\CLI\atlassian-cli-8.5.0-distribution\atlassian-cli-8.5.0\lib\jira-cli-8.5.0.jar --server https://your-site.atlassian.net --user "john@example.com" --password "jLBdxOCRPvsiOdu0XiBcA088" %*

Problem Determination

...

  1. Remote error: Action disallowed. Response code: 403.
  2. Remote error: Unknown error occurred on the server. Response code: 501.

...


Info

...