quality.gates.jenkins.plugin.QGException: Expected status 200, got: 401. Response:

Google Groups | gamer...@googlemail.com (JIRA) | 5 months 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. 1

    [JIRA] (JENKINS-38101) Credentials are not working with newest Sonarqube version

    Google Groups | 5 months ago | gamer...@googlemail.com (JIRA)
    quality.gates.jenkins.plugin.QGException: Expected status 200, got: 401. Response:
  2. 0

    Some days ago I reinstall all my systems to the versions under Enviroment. The problem now is, that I setup working credentials under "Jenkins / Manage / Quality Gate". (I am using the same credentials for the other sonar plugin to run the scanner, so they are correct) But for some reason I get the following Issue: {code} quality.gates.jenkins.plugin.QGException: Expected status 200, got: 401. Response: at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59) at quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47) at quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34) at quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29) at quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20) at quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Build step 'Quality Gates' marked build as failure {code} I also tested to reconfigure Sonarqube without credentials (allow anonymous): This is working. Using default credentials (admin/admin): Also not working I think the login is broken.

    Jenkins JIRA | 5 months ago | Colin Weber
    quality.gates.jenkins.plugin.QGException: Expected status 200, got: 401. Response:
  3. 0

    Quality Gates 500 error

    Stack Overflow | 5 days ago | octavian
    quality.gates.jenkins.plugin.QGException: Expected status 200, got: 500. Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>SonarQube</title> <style type="text/css"> body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; } </style> </head> <body> <!-- This file lives in public/500.html --> <div class="dialog"> <h1>We're sorry, but something went wrong.</h1> <p>Please try back in a few minutes and contact <a href="http://www.sonarqube.org/get-support/">support</a> if the problem persists.</p> <p> <!-- SONAR-4447 Sometimes this error page is served as static html so we hide ruby code --> <a href="/">Go back to the homepage</a> <!-- --> </p> </div> </body> </html>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. quality.gates.jenkins.plugin.QGException

      Expected status 200, got: 401. Response:

      at quality.gates.sonar.api.SonarHttpRequester.executeGetRequest()
    2. quality.gates.sonar
      QualityGatesProvider.getAPIResultsForQualityGates
      1. quality.gates.sonar.api.SonarHttpRequester.executeGetRequest(SonarHttpRequester.java:59)
      2. quality.gates.sonar.api.SonarHttpRequester.getAPIInfo(SonarHttpRequester.java:47)
      3. quality.gates.sonar.api.QualityGatesProvider.getRequesterResult(QualityGatesProvider.java:34)
      4. quality.gates.sonar.api.QualityGatesProvider.getAPIResultsForQualityGates(QualityGatesProvider.java:29)
      4 frames
    3. quality.gates.jenkins
      QGPublisher.perform
      1. quality.gates.jenkins.plugin.BuildDecision.getStatus(BuildDecision.java:20)
      2. quality.gates.jenkins.plugin.QGPublisher.perform(QGPublisher.java:73)
      2 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      6. hudson.model.Run.execute(Run.java:1745)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:404)
      9 frames