jenkinsci / jenkinsci/java-client-api

Getting HTTP HttpResponseException

Open
#354 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
913
Forks
466
PR merge metrics
No merged PRs in 30d

Description

Getting HTTP HttpResponseException for every API except getVersion().
Below is the exception i am getting:
org.apache.http.client.HttpResponseException: at com.offbytwo.jenkins.client.validator.HttpResponseValidator.validateResponse(HttpResponseValidator.java:11)
at com.offbytwo.jenkins.client.JenkinsHttpClient.get(JenkinsHttpClient.java:152)
at com.offbytwo.jenkins.JenkinsServer.getJobs(JenkinsServer.java:169)
at com.offbytwo.jenkins.JenkinsServer.getJobs(JenkinsServer.java:127)
at Jenkins.main(Jenkins.java:70)
I am just creating the JenkinsServer Object using the URI and username and password and hitting the methods, But getting the above exception.
Seems like it is failing at validating the API. Please Help.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.