jenkinsci / jenkinsci/java-client-api

Getting HTTP HttpResponseException

Aperta
#354 9 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
913
Fork
466
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start in com.offbytwo.jenkins.client.validator.HttpResponseValidator.validateResponse and trace the request path through JenkinsHttpClient.get and JenkinsServer.getJobs. Reproduce the reported behavior using the URI, username, password, and API methods described, then inspect the HTTP response details to identify why validation fails. Done means the affected APIs behave correctly while getVersion() continues to work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.