org.swift.common.cli.CliClient$ClientException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When I try to export a whole space I sometimes get a 403 error but sometimes it works. Here the log output: u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "mreliabilityfleet" --file "exportSpaceHtml.zip" --exportType "HTML" -v Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? Space exported with url: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-133651-113/Confluence-space-export-133843-114.html.zip to file: exportSpaceHtml.zip 62461df693 logged out. u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "SDG" --file "exportSpaceHtml.zip" --exportType "HTML" -v !180 Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? e0292d11bb logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171)
    via by Kevin Rancka,
  • When I try to export a whole space I sometimes get a 403 error but sometimes it works. Here the log output: u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "mreliabilityfleet" --file "exportSpaceHtml.zip" --exportType "HTML" -v Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? Space exported with url: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-133651-113/Confluence-space-export-133843-114.html.zip to file: exportSpaceHtml.zip 62461df693 logged out. u837608@LHT-N51548 /cygdrive/c/Users/u837608/Downloads/atlassian-cli-5.1.0 % ./confluence.bat --action exportSpace --space "SDG" --file "exportSpaceHtml.zip" --exportType "HTML" -v !180 Server address: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 Successful login to: https://lht.app.lufthansa.com/confluence/rpc/soap-axis/confluenceservice-v2 by user: u837608. Response code: 200, message: OK, url: https://lht.app.lufthansa.com/confluence/rest/org.swift.confluence.cli/latest/validatelicense? e0292d11bb logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171)
    via by Kevin Rancka,
  • We have been unable to export spaces using the CLI, continually getting 403 errors. CLI appears to be able to login and request the space export and the URL it is getting a 403 on does return a valid space export when copying and pasting the url into a browser with a logged in confluence session. Attempting to download whilst not logged in to confluence does return a 403 error from tomcat. Our confluence is behind a apache proxy, but connecting directly to the tomcat port yielded the same results. {code:java} java -jar `dirname $0`/lib/confluence-cli-5.1.0.jar --server http://127.0.0.1:8090 --user "snip" --password "snip" --action exportSpace --space "AE" --file "test.pdf" --exportType "PDF" --connectionTimeout 0 -v Server address: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 Successful login to: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 by user: snip. Response code: 200, message: OK, url: http://127.0.0.1:8090/rest/org.swift.confluence.cli/latest/validatelicense? 4c5be18477 logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {code} It looks like the command line tools is logging out of confluence before it downloads the export? This is affecting all spaces, and all the different types of exports.
    via by Peter Modica,
  • We have been unable to export spaces using the CLI, continually getting 403 errors. CLI appears to be able to login and request the space export and the URL it is getting a 403 on does return a valid space export when copying and pasting the url into a browser with a logged in confluence session. Attempting to download whilst not logged in to confluence does return a 403 error from tomcat. Our confluence is behind a apache proxy, but connecting directly to the tomcat port yielded the same results. {code:java} java -jar `dirname $0`/lib/confluence-cli-5.1.0.jar --server http://127.0.0.1:8090 --user "snip" --password "snip" --action exportSpace --space "AE" --file "test.pdf" --exportType "PDF" --connectionTimeout 0 -v Server address: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 Successful login to: http://127.0.0.1:8090/rpc/soap-axis/confluenceservice-v2 by user: snip. Response code: 200, message: OK, url: http://127.0.0.1:8090/rest/org.swift.confluence.cli/latest/validatelicense? 4c5be18477 logged out. Client error: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://snip/download/temp/pdfexport-20160122-220116-0901-52/AE-220116-0901-53.pdf at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {code} It looks like the command line tools is logging out of confluence before it downloads the export? This is affecting all spaces, and all the different types of exports.
    via by Peter Modica,
    • org.swift.common.cli.CliClient$ClientException: Bad response code (403) received trying to retrieve data from URL: https://lht.app.lufthansa.com/confluence/download/temp/htmlexport-20160308-134006-275/Confluence-space-export-134048-276.html.zip at org.swift.common.cli.CliUtils.copyUrlToFile(CliUtils.java:223) at org.swift.confluence.cli.ConfluenceClient.exportSpace(ConfluenceClient.java:6234) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:923) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171)
    No Bugmate found.