ConnectExcpetion on a simple Restful API test


#1

Hi,

I am getting the ConnectExcpetion even I for a simple Restful API, please can any one help me out to resolve the issue.

java.net.ConnectException: Connection timed out: connect
at com.kms.katalon.core.webservice.common.RestfulClient.response(RestfulClient.java:192)
at com.kms.katalon.core.webservice.common.RestfulClient.sendRequest(RestfulClient.java:97)
at com.kms.katalon.core.webservice.common.RestfulClient.send(RestfulClient.java:59)
at com.kms.katalon.controller.WebServiceController.sendRequest(WebServiceController.java:113)
at com.kms.katalon.composer.webservice.parts.RestServicePart$6.run(RestServicePart.java:185)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Thank you,
Vinay


#2

Please give more information so we can help you ,this tells us nothing (Dosen’t give us much anyway)
Follow this guide :


#3

I am trying to execute the below RESTful API and getting the ConnectExcpetion.

https://reqres.in/api/users/2


#4

I got same Error. You need to setup proxy based on you network configuration. Please prefer below link that will work for you.