RestRequest Get returns 502 all the time


I’m trying to ping a web page to check Status Code. I used below code, and I’m getting 502 code all the time.
Could you please check what I’ve done wrong?

import com.kms.katalon.core.testobject.ConditionType
import com.kms.katalon.core.testobject.RequestObject
import com.kms.katalon.core.testobject.ResponseObject
import com.kms.katalon.core.testobject.RestRequestObjectBuilder
import com.kms.katalon.core.testobject.TestObjectProperty
import com.kms.katalon.core.testobject.impl.HttpTextBodyContent
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS

String endpoint = “
String requestMethod = “GET”

RequestObject ro = new RestRequestObjectBuilder()

ResponseObject respObj = WS.sendRequest(ro)



Hi @Jiho_Lee,

Please check your network is under a Proxy or not then configure the proxy settings in Preferences/Katalon/Proxy and also disable BrowserMob Proxy then try to send again.

BTW, Please DON’T send any request to because it is our business website. We also created this demo page to help users to try their test.


1 Like

I have the same issue.
Seems that in Version 5.10.1 the Preferences menu has been restructured.
I don’t find the proxy configuration anymore.
Can you point it out to me ?