# I'm trying to API testing but error when run/send

**URL:** <https://forum.katalon.com/t/im-trying-to-api-testing-but-error-when-run-send/93789>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [August 14, 2023, 2:56am UTC](https://forum.katalon.com/t/im-trying-to-api-testing-but-error-when-run-send/93789 "2023-08-14T02:56:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [August 14, 2023, 3:36am UTC](https://forum.katalon.com/t/im-trying-to-api-testing-but-error-when-run-send/93789/2 "2023-08-14T03:36:54Z")

</div>

> [@cyntiaverolita](#):
>
> org.apache.http.conn.HttpHostConnectException: Connect to :0 [localhost/127.0.0.1] failed: Connection refused: connect

Hi,

It seems like the error of the connection of API calling. I found these similar: [maven - org.apache.http.conn.HttpHostConnectException: Connect to localhost:19538 [localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) - Stack Overflow](https://stackoverflow.com/questions/48419801/org-apache-http-conn-httphostconnectexception-connect-to-localhost19538-local) and [Plugin Store behind firewall - #6 by kellera50](http://forum.katalon.com/t/plugin-store-behind-firewall/26978/6). Please try

---

_[View the full topic](https://forum.katalon.com/t/im-trying-to-api-testing-but-error-when-run-send/93789)._
