API localhost "Connection refused connect"

Hi, I am new using Katalon Studio and I was trying to send a test request to an API in my local machine but there’s an error in connection.

HTTP Method: Get
URL: http://localhost:8000/privacypolicy

Cannot send the test request.
Connection refused: connect
java.net.ConnectException: Connection refused: connect
at com.kms.katalon.core.webservice.common.RestfulClient.response(RestfulClient.java:161)
at com.kms.katalon.core.webservice.common.RestfulClient.sendRequest(RestfulClient.java:86)
at com.kms.katalon.core.webservice.common.RestfulClient.send(RestfulClient.java:49)
at com.kms.katalon.controller.WebServiceController.sendRequest(WebServiceController.java:110)
at com.kms.katalon.composer.webservice.parts.RestServicePart$6.run(RestServicePart.java:182)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

I tried using Postman and the URL was working properly, so I tried using a sample API in web “https://reqres.in/api/users/2” and its working. So I think it is because of the localhost. Can someone help me? Thanks!

Anyone help on this. Me too getting the same connection refused exception

1 Like

With me just decided to create a new web service request

Hi @giginasobral,
What do you mean by creating a new web service request? Did the issue not happen when you did so?

@rachelle.rellora If you have proxy enabled. Please uncheck the proxy and give it a try