Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to REST service

sowmya sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 30, 2018
java.io.IOException: Server returned HTTP response code: 400 for URL: https://jiraintegrationplanit.atlassian.net/rest/api/2/search?jqlBuild step 'Jira Issue Updater' marked build as failure

 

1 answer

0 votes
Bastian Stehmann
Community Champion
July 30, 2018

Hi @Sowmya Shettipally,

welcome to the community.

The way you posted your request, it is a escaping problem, I think. You can please post your original request to make sure that that is not the problem and give us some more information what you want to do?

Sudha Rao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2019

Hi Bastian,

 

JIRA Update Results Recorder
-------------------------------------------------------
Unable to connect to REST service
java.net.ConnectException: Connection timed out (Connection timed out)Updating JIRA tickets
Operation: Add a comment
Updating ticket: AIS-15998
ERROR Updating jira notifications
net.rcarz.jiraclient.JiraException: Failed to retrieve issue AIS-15998
 at net.rcarz.jiraclient.Issue.realGet(Issue.java:700)
 at net.rcarz.jiraclient.Issue.get(Issue.java:723)
 at net.rcarz.jiraclient.JiraClient.getIssue(JiraClient.java:90)
 at org.jenkinsci.plugins.jiraext.svc.impl.JiraClientSvcImpl.addCommentToTicket(JiraClientSvcImpl.java:78)
 at org.jenkinsci.plugins.jiraext.view.AddComment.perform(AddComment.java:78)
 at org.jenkinsci.plugins.jiraext.view.JiraExtPublisherStep.perform(JiraExtPublisherStep.java:66)
 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
 at hudson.model.Build$BuildExecution.post2(Build.java:186)
 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
 at hudson.model.Run.execute(Run.java:1823)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:97)
 at hudson.model.Executor.run(Executor.java:429)
Caused by: java.net.SocketTimeoutException: connect timed out
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:589)
 at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:542)
 at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
 at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
 at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
 at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
 at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
 at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
 at net.rcarz.jiraclient.RestClient.request(RestClient.java:126)
 at net.rcarz.jiraclient.RestClient.get(RestClient.java:243)
 at net.rcarz.jiraclient.Issue.realGet(Issue.java:698)
 ... 14 more
Finish updating JIRA tickets

 

 

I am getting this error : when i try updating through Jira Issue Updated / Jira-EXT or using Jira Plugin. Does not seem to identify Jira URL. Proxy is set in jenkins and I see, rest API is installed by default. ( Wiki Jira Plugin reference). However i am not successful in connecting to Jira and updating. 

Jenkins version : Jenkins ver. 2.121.2

Bastian Stehmann
Community Champion
February 1, 2019

Hi,

 

Your connection timed out. So there is a problem with the connection between your servers maybe. Can you double check the proxy settings. 

Sudha Rao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2019

Hi Bastian, 

I am trying to connect to Jira on Cloud. 

Tried using Jira plugin, jira-ext, Issue updater, to connect through URL, authentication to Jira etc, but none seem to work. 

Is there a possibility to connect to Jira on Cloud from Jenkins ? 

Was not successful in finding a blog as well which allows me to do this. 

Regards,

Sudha

Bastian Stehmann
Community Champion
February 6, 2019

Can you try, if you can reach Jira from Jenkins at all, so that we can be sure, that it is not a connection/proxy problem.

Suggest an answer

Log in or Sign up to answer