java.io.IOException: Server returned HTTP response code: 403 for URL: https://jenkins.example.com/cli

Jenkins JIRA | Sidnei da Silva | 4 years ago
  1. 0

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

    jenkins-ci.org | 7 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL:
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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
  4. 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

  1. tfr 2 times, last 4 months ago
  2. davidvanlaatum 1 times, last 4 months ago
  3. pnaranja 5 times, last 5 months ago
  4. aldrinleal 1 times, last 7 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://jenkins.example.com/cli

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
  2. Java RT
    HttpsURLConnectionImpl.getInputStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
    2. sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    2 frames
  3. Hudson
    CLI.main
    1. hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:61)
    2. hudson.cli.CLI.<init>(CLI.java:110)
    3. hudson.cli.CLI.<init>(CLI.java:82)
    4. hudson.cli.CLI._main(CLI.java:250)
    5. hudson.cli.CLI.main(CLI.java:199)
    5 frames