org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401.

JIRA | Tim Coulson | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    See [this question|https://bobswift.atlassian.net/wiki/questions/111575175]. {noformat} ----- Command line ------- ./bamboo.sh --server ${SERVER} --user ${USER} --password ${PASSWORD} --action run --file ./test.sh ----- test.sh script ------ --action getProjectList --action deletePlan --plan PROJECT-PLAN --action createPlan --plan PROJECT-PLAN --name "Test Plan" --action addStage --plan PROJECT-PLAN --stage STAGE1 --job JOB1 --action addJob --plan PROJECT-PLAN --description "My job 1 description" --stage STAGE1 --job JOB1 --action addTask --plan PROJECT-PLAN --job JOB1 --taskKey SCRIPT --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "exit -1" --action addRequirement --plan PROJECT-PLAN --job JOB1 --requirement lsf.project --value PJ00495 --type equal --action setJobOptions --plan PROJECT-PLAN --job JOB1 --cleanAfter ------ Log Message ------ The log message gives a 401 error as such: Server address: http://bamboo-dev.nahpc.arm.com/rest/api URL requested: http://bamboo-dev.nahpc.arm.com/rest/org.swift.bamboo.cli/latest/validatelicense? Request type: GET Content type: application/json Accept content type: application/json Using basic authentication. Response code: 200, message: OK, url: http://bamboo-dev.nahpc.arm.com/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: http://bamboo-dev.nahpc.arm.com/rest/api/latest/plan/PROJECT-PLAN-JOB1? Request type: GET Content type: application/json Accept content type: application/json Using basic authentication. Response code: 200, message: OK, url: http://bamboo-dev.nahpc.arm.com/rest/api/latest/plan/PROJECT-PLAN-JOB1? URL requested: http://bamboo-dev.nahpc.arm.com/build/admin/edit/updateMiscellaneous.action?&buildKey=PROJECT-PLAN-JOB1&custom.auto.label=&save=Save&cleanWorkingDirectory=true Request type: POST Content type: application/json Accept content type: application/json Using basic authentication. Response code: 401, message: Authorization Required, url: http://bamboo-dev.nahpc.arm.com/build/admin/edit/editMiscellaneous.action?buildKey=PROJECT-PLAN-JOB1&saved=true Remote error: User is not authorized to perform the request. Response code: 401. org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:689) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:512) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:500) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:484) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:470) at org.swift.bamboo.cli.helpers.PlanHelper.setJobOptions(PlanHelper.java:861) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:683) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:285) at org.swift.common.cli.CliClient.doWork(CliClient.java:414) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:257) {noformat}

    JIRA | 2 years ago | Tim Coulson
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401.
  2. 0

    See [this question|https://bobswift.atlassian.net/wiki/questions/111575175]. {noformat} ----- Command line ------- ./bamboo.sh --server ${SERVER} --user ${USER} --password ${PASSWORD} --action run --file ./test.sh ----- test.sh script ------ --action getProjectList --action deletePlan --plan PROJECT-PLAN --action createPlan --plan PROJECT-PLAN --name "Test Plan" --action addStage --plan PROJECT-PLAN --stage STAGE1 --job JOB1 --action addJob --plan PROJECT-PLAN --description "My job 1 description" --stage STAGE1 --job JOB1 --action addTask --plan PROJECT-PLAN --job JOB1 --taskKey SCRIPT --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "exit -1" --action addRequirement --plan PROJECT-PLAN --job JOB1 --requirement lsf.project --value PJ00495 --type equal --action setJobOptions --plan PROJECT-PLAN --job JOB1 --cleanAfter ------ Log Message ------ The log message gives a 401 error as such: Server address: http://bamboo-dev.nahpc.arm.com/rest/api URL requested: http://bamboo-dev.nahpc.arm.com/rest/org.swift.bamboo.cli/latest/validatelicense? Request type: GET Content type: application/json Accept content type: application/json Using basic authentication. Response code: 200, message: OK, url: http://bamboo-dev.nahpc.arm.com/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: http://bamboo-dev.nahpc.arm.com/rest/api/latest/plan/PROJECT-PLAN-JOB1? Request type: GET Content type: application/json Accept content type: application/json Using basic authentication. Response code: 200, message: OK, url: http://bamboo-dev.nahpc.arm.com/rest/api/latest/plan/PROJECT-PLAN-JOB1? URL requested: http://bamboo-dev.nahpc.arm.com/build/admin/edit/updateMiscellaneous.action?&buildKey=PROJECT-PLAN-JOB1&custom.auto.label=&save=Save&cleanWorkingDirectory=true Request type: POST Content type: application/json Accept content type: application/json Using basic authentication. Response code: 401, message: Authorization Required, url: http://bamboo-dev.nahpc.arm.com/build/admin/edit/editMiscellaneous.action?buildKey=PROJECT-PLAN-JOB1&saved=true Remote error: User is not authorized to perform the request. Response code: 401. org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:689) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:512) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:500) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:484) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:470) at org.swift.bamboo.cli.helpers.PlanHelper.setJobOptions(PlanHelper.java:861) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:683) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:285) at org.swift.common.cli.CliClient.doWork(CliClient.java:414) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:257) {noformat}

    JIRA | 2 years ago | Tim Coulson
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401.
  3. 0

    To try and avoid dropping history rather than deleting a plan and recreating I was trying to leave the the plan in place but remove and recreate the internals. This appears to trigger bad behaviour when a job is recreated. Completely deleting the plan and recreating resets to good. To see the problem run the following.. --action createPlan --plan TEST-T1 --name TestName --project TestProject --action addStage --plan TEST-T1 --stage "Test Stage" --action addJob --plan TEST-T1 --stage "@stage@" --job "Default Job" --action removeStage --plan TEST-T1 --id -1 --action addStage --plan TEST-T1 --stage "Test Stage" --action addJob --plan TEST-T1 --stage "@stage@" --job "Default Job" This gives the result Run: --action createPlan --plan TEST-T1 --name TestName --project TestProject Plan TEST-T1 created with name 'TestName'. Run: --action addStage --plan TEST-T1 --stage "Test Stage" Stage 'Test Stage' added to plan TEST-T1. Run: --action addJob --plan TEST-T1 --stage "Test Stage" --job "Default Job" Job DEFAULTJOB added to stage 'Test Stage' in plan TEST-T1. Run: --action removeStage --plan TEST-T1 --id -1 Stage 'Test Stage' removed from plan TEST-T1. 1 stages removed. # Remake stage and job. Run: --action addStage --plan TEST-T1 --stage "Test Stage" Stage 'Test Stage' added to plan TEST-T1. Run: --action addJob --plan TEST-T1 --stage "Test Stage" --job "Default Job" Remote error: Hibernate flushing: Could not execute JDBC batch update; uncategorized SQLException for SQL [insert into BUILD (CREATED_DATE, UPDATED_DA TE, FULL_KEY, BUILDKEY, TITLE, DESCRIPTION, SUSPENDED_FROM_BUILDING, MARKED_FOR_DELETION, OID, PROJECT_ID, MASTER_ID, REQUIREMENT_SET, STAGE_ID, BUILD _TYPE, BUILD_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'JOB', ?)]; SQL state [null]; error code [0]; failed batch; nested exception is java.s ql.BatchUpdateException: failed batch Client error: 1 actions failed, 5 actions were successful from file: E:\CLI\ppaTestFail.txt Is it possible that removing the stage does not correctly remove the contained jobs? I could be wrong but it feels like it should. My original use case also gave the exception as below. I'm not sure why my canned example above didn't Remote error: Hibernate flushing: Could not execute JDBC batch update; uncategorized SQLException for SQL [insert into BUILD (CREATED_DATE, UPDATED_D TE, FULL_KEY, BUILDKEY, TITLE, DESCRIPTION, SUSPENDED_FROM_BUILDING, MARKED_FOR_DELETION, OID, PROJECT_ID, MASTER_ID, REQUIREMENT_SET, STAGE_ID, BUIL _TYPE, BUILD_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'JOB', ?)]; SQL state [null]; error code [0]; failed batch; nested exception is java. ql.BatchUpdateException: failed batch org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Hibernate flushing: Could not execute JDBC batch update; uncategorized SQLException fo SQL [insert into BUILD (CREATED_DATE, UPDATED_DATE, FULL_KEY, BUILDKEY, TITLE, DESCRIPTION, SUSPENDED_FROM_BUILDING, MARKED_FOR_DELETION, OID, PROJE T_ID, MASTER_ID, REQUIREMENT_SET, STAGE_ID, BUILD_TYPE, BUILD_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'JOB', ?)]; SQL state [null]; error ode [0]; failed batch; nested exception is java.sql.BatchUpdateException: failed batch at org.swift.common.cli.AbstractRestClient.printErrorMessages(AbstractRestClient.java:293) at org.swift.common.cli.AbstractRestClient.restRequestWithUrlConnection(AbstractRestClient.java:719) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:573) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:544) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:519) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:507) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:491) at org.swift.bamboo.cli.AppfireClientForBamboo.addJob(AppfireClientForBamboo.java:141) at org.swift.bamboo.cli.helpers.PlanHelper.addJob(PlanHelper.java:862) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:711) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:448) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.common.cli.CliClient.doWork(CliClient.java:521) at org.swift.common.cli.CliClient.doWork(CliClient.java:517) at org.swift.common.cli.CliClient.processRunLine(CliClient.java:1253) at org.swift.common.cli.AbstractRemoteClient.processRunLine(AbstractRemoteClient.java:777) at org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1225) at org.swift.common.cli.CliClient.run(CliClient.java:1086) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:528) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:448) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:252) Client error: 1 actions failed, 8 actions were successful from file: E:\CLI\ppaTestScript.txt org.swift.common.cli.CliClient$ClientException: 1 actions failed, 8 actions were successful from file: E:\CLI\ppaTestScript.txt at org.swift.common.cli.CliClient.run(CliClient.java:1159) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:528) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:448) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:252)

    JIRA | 9 months ago | Peter Adams
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Hibernate flushing: Could not execute JDBC batch update; uncategorized SQLException fo SQL [insert into BUILD (CREATED_DATE, UPDATED_DATE, FULL_KEY, BUILDKEY, TITLE, DESCRIPTION, SUSPENDED_FROM_BUILDING, MARKED_FOR_DELETION, OID, PROJE T_ID, MASTER_ID, REQUIREMENT_SET, STAGE_ID, BUILD_TYPE, BUILD_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'JOB', ?)]; SQL state [null]; error ode [0]; failed batch; nested exception is java.sql.BatchUpdateException: failed batch
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am trying to use version 4.5 of the JIRA Command Line Interface (CLI), but I get a 401 response on any request (see example below). -- The server address appears to be a deprecated SOAP service: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action getServerInfo --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 401, message: Unauthorized, url: https://middil.atlassian.net/rest/api/latest/serverInfo? Remote error: User is not authorized to perform the request. Response code: 401. org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401. at org.swift.common.cli.AbstractRestClient.handleBadResponseCode(AbstractRestClient.java:722) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:692) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:542) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:517) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:505) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:489) at org.swift.jira.cli.JiraRestClient.getServerInfo(JiraRestClient.java:1835) at org.swift.jira.cli.JiraClient.getServerInfoAlternate(JiraClient.java:1856) at org.swift.jira.cli.JiraClient.getRemoteServerInfo(JiraClient.java:1829) at org.swift.jira.cli.JiraClient.validateJiraRelease(JiraClient.java:1978) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:710) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) {code} -- Here are my customizations of atlassian.sh (with password obfuscated): {code} # - - - - - - - - - - - - - - - - - - - - START CUSTOMIZE FOR YOUR INSTALLATION !!! user='jessegue' password='********' settings='' if [ "$application" = "all" ]; then string="all-cli-4.5.0.jar" elif [ "$application" = "confluence" ]; then string="confluence-cli-4.5.0.jar --server https://confluence.example.com --user $user --password $password" elif [ "$application" = "jira" ]; then string="jira-cli-4.5.0.jar --server https://middil.atlassian.net --user $user --password $password" elif [ "$application" = "fisheye" ]; then string="fisheye-cli-4.5.0.jar --server https://fisheye.example.com --user $user --password $password" elif [ "$application" = "crucible" ]; then string="crucible-cli-4.5.0.jar --server https://crucible.example.com --user $user --password $password" elif [ "$application" = "bamboo" ]; then string="bamboo-cli-4.5.0.jar --server https://bamboo.example.com --user $user --password $password" elif [ "$application" = "stash" ]; then string="stash-cli-4.5.0.jar --server https://stash.example.com --user $user --password $password" elif [ "$application" = "hipchat" ]; then string="hipchat-cli-${hipchatVersion}.jar --server https://hipchat.example.com --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # - - - - - - - - - - - - - - - - - - - - - END CUSTOMIZE FOR YOUR INSTALLATION !!! {code} -- I am able to confirm my user credentials using CURL and the REST API: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ curl --basic -u jguertin https://middil.atlassian.net/rest/api/latest/serverInfo? Enter host password for user 'jguertin': {"baseUrl":"https://middil.atlassian.net","version":"7.0.0-OD-08-005","versionNumbers":[7,0,0],"buildNumber":70107,"buildDate":"2015-10-28T00:00:00.000-0400","serverTime":"2015-11-03T13:26:21.766-0500","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTitle":"JIRA"} {code} -- The CLI Connector is installed on our JIRA Cloud (OnDemand) instance at https://middil.atlassian.net/, and I am using [version 4.5|https://bobswift.atlassian.net/wiki/download/attachments/16285777/atlassian-cli-4.5.0-distribution.zip?version=1&modificationDate=1442443925818&api=v2] of the CLI Client. {noformat} CLI Connector - installed on the server using UPM. You have already completed this step! CLI Client - installed separately on any system (Windows, Linux, OSX) that has Java 7 or higher. {noformat} -- Please let me know what additional information may be helpful. Thank you!

    JIRA | 1 year ago | Jesse Guertin
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401.
  6. 0

    I am trying to use version 4.5 of the JIRA Command Line Interface (CLI), but I get a 401 response on any request (see example below). -- The server address appears to be a deprecated SOAP service: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action getServerInfo --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 401, message: Unauthorized, url: https://middil.atlassian.net/rest/api/latest/serverInfo? Remote error: User is not authorized to perform the request. Response code: 401. org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401. at org.swift.common.cli.AbstractRestClient.handleBadResponseCode(AbstractRestClient.java:722) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:692) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:542) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:517) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:505) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:489) at org.swift.jira.cli.JiraRestClient.getServerInfo(JiraRestClient.java:1835) at org.swift.jira.cli.JiraClient.getServerInfoAlternate(JiraClient.java:1856) at org.swift.jira.cli.JiraClient.getRemoteServerInfo(JiraClient.java:1829) at org.swift.jira.cli.JiraClient.validateJiraRelease(JiraClient.java:1978) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:710) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) {code} -- Here are my customizations of atlassian.sh (with password obfuscated): {code} # - - - - - - - - - - - - - - - - - - - - START CUSTOMIZE FOR YOUR INSTALLATION !!! user='jessegue' password='********' settings='' if [ "$application" = "all" ]; then string="all-cli-4.5.0.jar" elif [ "$application" = "confluence" ]; then string="confluence-cli-4.5.0.jar --server https://confluence.example.com --user $user --password $password" elif [ "$application" = "jira" ]; then string="jira-cli-4.5.0.jar --server https://middil.atlassian.net --user $user --password $password" elif [ "$application" = "fisheye" ]; then string="fisheye-cli-4.5.0.jar --server https://fisheye.example.com --user $user --password $password" elif [ "$application" = "crucible" ]; then string="crucible-cli-4.5.0.jar --server https://crucible.example.com --user $user --password $password" elif [ "$application" = "bamboo" ]; then string="bamboo-cli-4.5.0.jar --server https://bamboo.example.com --user $user --password $password" elif [ "$application" = "stash" ]; then string="stash-cli-4.5.0.jar --server https://stash.example.com --user $user --password $password" elif [ "$application" = "hipchat" ]; then string="hipchat-cli-${hipchatVersion}.jar --server https://hipchat.example.com --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # - - - - - - - - - - - - - - - - - - - - - END CUSTOMIZE FOR YOUR INSTALLATION !!! {code} -- I am able to confirm my user credentials using CURL and the REST API: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ curl --basic -u jguertin https://middil.atlassian.net/rest/api/latest/serverInfo? Enter host password for user 'jguertin': {"baseUrl":"https://middil.atlassian.net","version":"7.0.0-OD-08-005","versionNumbers":[7,0,0],"buildNumber":70107,"buildDate":"2015-10-28T00:00:00.000-0400","serverTime":"2015-11-03T13:26:21.766-0500","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTitle":"JIRA"} {code} -- The CLI Connector is installed on our JIRA Cloud (OnDemand) instance at https://middil.atlassian.net/, and I am using [version 4.5|https://bobswift.atlassian.net/wiki/download/attachments/16285777/atlassian-cli-4.5.0-distribution.zip?version=1&modificationDate=1442443925818&api=v2] of the CLI Client. {noformat} CLI Connector - installed on the server using UPM. You have already completed this step! CLI Client - installed separately on any system (Windows, Linux, OSX) that has Java 7 or higher. {noformat} -- Please let me know what additional information may be helpful. Thank you!

    JIRA | 1 year ago | Jesse Guertin
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: User is not authorized to perform the request. Response code: 401.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.swift.common.cli.AbstractRemoteClient$RemoteRestException

      User is not authorized to perform the request. Response code: 401.

      at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl()
    2. org.swift.common
      AbstractRestClient.restRequest
      1. org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:689)
      2. org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537)
      3. org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:512)
      4. org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:500)
      5. org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:484)
      6. org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:470)
      6 frames
    3. org.swift.bamboo
      BambooClient.handleRequest
      1. org.swift.bamboo.cli.helpers.PlanHelper.setJobOptions(PlanHelper.java:861)
      2. org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:683)
      2 frames
    4. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:285)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:414)
      2 frames
    5. org.swift.bamboo
      BambooClient.main
      1. org.swift.bamboo.cli.BambooClient.main(BambooClient.java:257)
      1 frame