# Dockerized Kong API forward request Issue|HTTP 503 Error|

**URL:** <https://discuss.konghq.com/t/dockerized-kong-api-forward-request-issue-http-503-error/319>\
**Category:** Questions\
**Created:** [January 1, 2018, 2:25pm UTC](https://discuss.konghq.com/t/dockerized-kong-api-forward-request-issue-http-503-error/319 "2018-01-01T14:25:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamal-verma03](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@kamal-verma03](https://discuss.konghq.com/u/kamal-verma03)\
**Post date:** [January 1, 2018, 2:25pm UTC](https://discuss.konghq.com/t/dockerized-kong-api-forward-request-issue-http-503-error/319/1 "2018-01-01T14:25:55Z")

</div>

Please help me as I am getting “503 Service Temporarily Unavailable” error on getting the data from REST endpoint using Dockerized Kong.

REST service that I am trying to access using Kong is running on my local machine (DESKTOP-2IQC7RC).

Kong Request to add API :

curl -i -X POST   
–url [http://localhost:8001/apis/](http://localhost:8001/apis/)   
–data ‘name=my-api’   
–data ‘uris=/employee’   
–data ‘upstream\_url=http://DESKTOP-2IQC7RC:8080/v1/employee/ping’

Error that I am getting on forwarding the request through Kong:

_**[root@c1c865250782 /]# curl -v -X GET --url [http://localhost:8000/employee](http://localhost:8000/employee)**_  
_\*\*\* About to connect() to localhost port 8000 (#0)\*\*_  
_\*\*\* Trying 127.0.0.1…\*\*_  
_\*\*\* Connected to localhost (127.0.0.1) port 8000 (#0)\*\*_  
_ **\> GET /employee HTTP/1.1** _  
_ **\> User-Agent: curl/7.29.0** _  
_ **\> Host: localhost:8000** _  
_ **\> Accept: /** _  
_ **\>** _  
_ **\< HTTP/1.1 503 Service Temporarily Unavailable** _  
_ **\< Date: Mon, 01 Jan 2018 14:13:17 GMT** _  
_ **\< Content-Type: application/json; charset=utf-8** _  
_ **\< Transfer-Encoding: chunked** _  
_ **\< Connection: keep-alive** _  
_ **\< Server: kong/0.11.2** _  
_ **\<** _  
_ **{“message”:“Service unavailable”}** _  
_\*\*\* Connection #0 to host localhost left intact\*\*_

Please help me to solve this issue.

Thanks, Kamal

---

<div class="post-metadata">

**Author:** ![kikito](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/kikito/32/15_2.png) [@kikito](https://discuss.konghq.com/u/kikito)\
**Post date:** [January 2, 2018, 4:42pm UTC](https://discuss.konghq.com/t/dockerized-kong-api-forward-request-issue-http-503-error/319/2 "2018-01-02T16:42:16Z")

</div>

Hi,

With that configuration you are attempting to access `http://DESKTOP-2IQC7RC:8080/v1/employee/ping/employees` (notice the `/employee/ping/employees` part). Is that URL correct? Does it work without using kong, or do you also get a 503 with that one?

---

<div class="post-metadata">

**Author:** ![jingtian](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jingtian/32/1651_2.png) [@jingtian](https://discuss.konghq.com/u/jingtian)\
**Post date:** [January 20, 2020, 1:20am UTC](https://discuss.konghq.com/t/dockerized-kong-api-forward-request-issue-http-503-error/319/3 "2020-01-20T01:20:36Z")

</div>

Hi, I met the same problem, but if I set the Host in http header, then I can call the api. Do you find another way to call it?
