java.io.IOException: Server returned HTTP response code: 403 for URL: https://dev.polidea.pl/jenkins/cli

Jenkins JIRA | Maciej Sawicki | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hi, I try to use jenkins cli but I got 403 errors: null:Downloads viroos$ java -jar ~/Downloads/jenkins-cli.jar -s https://dev.polidea.pl/jenkins help Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://dev.polidea.pl/jenkins/cli at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:77) at hudson.cli.CLI.connectViaHttp(CLI.java:156) at hudson.cli.CLI.<init>(CLI.java:140) at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:68) at hudson.cli.CLI._main(CLI.java:439) at hudson.cli.CLI.main(CLI.java:374) I added my public key to may jerkins account so this is not the reason. I check jenkins logs and I find out: Mar 10, 2013 5:11:28 PM hudson.security.csrf.CrumbFilter doFilter WARNING: No valid crumb was included in request for /jenkins/cli. Returning 403. But I have ignore_invalid_headers off; directive added in my proxy server. I use to have crumb errors in web interface but after adding this directive I don't have such errors any more. I attached crumbs.trace file that you can open in charles proxy (www. charlesproxy.com) and shows sniffed jenkins cli <-> jenkins server conversation.

    Jenkins JIRA | 4 years ago | Maciej Sawicki
    java.io.IOException: Server returned HTTP response code: 403 for URL: https://dev.polidea.pl/jenkins/cli
  2. 0

    Hi, I try to use jenkins cli but I got 403 errors: null:Downloads viroos$ java -jar ~/Downloads/jenkins-cli.jar -s https://dev.polidea.pl/jenkins help Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://dev.polidea.pl/jenkins/cli at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:77) at hudson.cli.CLI.connectViaHttp(CLI.java:156) at hudson.cli.CLI.<init>(CLI.java:140) at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:68) at hudson.cli.CLI._main(CLI.java:439) at hudson.cli.CLI.main(CLI.java:374) I added my public key to may jerkins account so this is not the reason. I check jenkins logs and I find out: Mar 10, 2013 5:11:28 PM hudson.security.csrf.CrumbFilter doFilter WARNING: No valid crumb was included in request for /jenkins/cli. Returning 403. But I have ignore_invalid_headers off; directive added in my proxy server. I use to have crumb errors in web interface but after adding this directive I don't have such errors any more. I attached crumbs.trace file that you can open in charles proxy (www. charlesproxy.com) and shows sniffed jenkins cli <-> jenkins server conversation.

    Jenkins JIRA | 4 years ago | Maciej Sawicki
    java.io.IOException: Server returned HTTP response code: 403 for URL: https://dev.polidea.pl/jenkins/cli
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [JENKINS-16531] jenkins-cli with apache+ssl fails with 403 - Jenkins JIRA

    jenkins-ci.org | 10 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL:

  1. tfr 2 times, last 7 months ago
  2. davidvanlaatum 1 times, last 7 months ago
  3. pnaranja 5 times, last 9 months ago
  4. aldrinleal 1 times, last 11 months ago
29 unregistered visitors
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. java.io.IOException

    Server returned HTTP response code: 403 for URL: https://dev.polidea.pl/jenkins/cli

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
  2. Java RT
    HttpsURLConnectionImpl.getInputStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
    2. sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    2 frames
  3. Hudson
    CLI.main
    1. hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:77)
    2. hudson.cli.CLI.connectViaHttp(CLI.java:156)
    3. hudson.cli.CLI.<init>(CLI.java:140)
    4. hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:68)
    5. hudson.cli.CLI._main(CLI.java:439)
    6. hudson.cli.CLI.main(CLI.java:374)
    6 frames