{"action":"opened","issue":{"url":"https://api.github.com/repos/cdancy/jenkins-rest/issues/32","repository_url":"https://api.github.com/repos/cdancy/jenkins-rest","labels_url":"https://api.github.com/repos/cdancy/jenkins-rest/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/cdancy/jenkins-rest/issues/32/comments","events_url":"https://api.github.com/repos/cdancy/jenkins-rest/issues/32/events","html_url":"https://github.com/cdancy/jenkins-rest/issues/32","id":362007100,"node_id":"MDU6SXNzdWUzNjIwMDcxMDA=","number":32,"title":"HttpResponseException","user":{"login":"hcray","id":3427940,"node_id":"MDQ6VXNlcjM0Mjc5NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/3427940?v=4","gravatar_id":"","url":"https://api.github.com/users/hcray","html_url":"https://github.com/hcray","followers_url":"https://api.github.com/users/hcray/followers","following_url":"https://api.github.com/users/hcray/following{/other_user}","gists_url":"https://api.github.com/users/hcray/gists{/gist_id}","starred_url":"https://api.github.com/users/hcray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hcray/subscriptions","organizations_url":"https://api.github.com/users/hcray/orgs","repos_url":"https://api.github.com/users/hcray/repos","events_url":"https://api.github.com/users/hcray/events{/privacy}","received_events_url":"https://api.github.com/users/hcray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-20T03:42:45Z","updated_at":"2018-09-20T03:42:45Z","closed_at":null,"author_association":"NONE","body":"code:\r\n    boolean ret = JenkinsClient.builder()\r\n                .endPoint(\"http://10.1.1.44:8080/jenkins\") // Optional. Defaults to http://127.0.0.1:8080\r\n                .credentials(\"MjE4MjklM0FhYmNAMTIzNA==\") // Optional.\r\n                .build()\r\n                .api().jobsApi().enable(null, \"BER\");\r\n\r\n\r\ndebug info:\r\n\r\nSystemInfo{errors=[Error{context=null, message=Null message connecting to HEAD http://10.1.1.44:8080/jenkins/ \r\nHTTP/1.1, exceptionName=org.jclouds.http.HttpResponseException}],\r\n hudsonVersion=-1, jenkinsVersion=-1, jenkinsSession=-1, instanceIdentity=-1, sshEndpoint=-1, server=-1}\r\n\r\nwireshark show:\r\nGET /jenkins/crumbIssuer/api/xml?xpath=concat%28//crumbRequestField,%22%3A%22,//crumb%29 HTTP/1.1\r\nAccept: text/plain\r\nAuthorization: Basic MjE4MjklM0FhYmNAMTIzNA==\r\nUser-Agent: jclouds/2.1.1 java/1.8.0_131\r\nHost: 10.1.1.44:8080\r\nConnection: keep-alive\r\n\r\n<html><head><title>Apache Tomcat/7.0.70 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - Malformed HTTP basic Authorization header</h1><HR size=\"1\" noshade=\"noshade\"><p><b>type</b> Status report</p><p><b>message</b> <u>Malformed HTTP basic Authorization header</u></p><p><b>description</b> <u>This request requires HTTP authentication.</u></p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat/7.0.70</h3></body></html>\r\n"}}
{"actor":{"display_login":"hcray"}}