java.net.SocketException: Permission denied: connect
at com.kms.katalon.core.webservice.common.RestfulClient.sendRequest(RestfulClient.java:91)
at com.kms.katalon.core.webservice.common.RestfulClient.send(RestfulClient.java:59)
at com.kms.katalon.controller.WebServiceController.sendRequest(WebServiceController.java:121)
at com.kms.katalon.composer.webservice.parts.RestServicePart$6.run(RestServicePart.java:187)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Same request being send using Postman and it’s working perfectly. Requesting you help on this.
Turning off “Use System Proxy” in Postman also works for me. Hmm.. the weird thing I found here is whenever I use the Katalon GUI to run the request, I’m getting connection denied but when I use script (keyword) to get the response, it works!
It happens to me also when I setup DB in Project Setting. I’m getting connection failed in GUI but it’s working fine when I use keyword to setup the connection. Not sure why this happen to me.
If you type http://172.16.218.228:8011/prototype/currencys/page into the address bar of your favorite, day-to-day used browser (Chrome, Firefox, IE) and send, then what do you see?
Do you see a JSON text in the browser window? or do you see “Permission denied: connect” ?
Make sure you have also “Accept = application/json” in the header. I see it is present in your keyword, that can make the difference. If still not working, inspect the generated .har file and check exactly what request has been sent when using the GUI (url and headers)
# This page isn’t working
**172.16.218.228** is currently unable to handle this request.
HTTP ERROR 500
I just tried sending the request again using groovy script and I can get the response properly from the server. I just cant get the same result when using Web Service Request interface. Always permission denied.
To me, your server-side application seems to have a problem. Not a problem of Katalon Studio.
Can you look at the server-side log file when this request was respended with HTTP ERROR 500?
I suppose in the server-side log file you would find some information (Java Exception Stack Trace with a message) which tells you why the server-side app failed to process the request.