Error : failure to get a peer from the ring-balancer

i have my own api running in http://localhost:9000/api/xxxx

i created kong api like below

curl -i -X POST
–url http://localhost:8001/apis/
–data ‘name=smart’
–data ‘upstream_url=http://localhost:9000/api/xxxx’
–data ‘hosts=hostname1’

if i try to access through

curl -v ‘http://localhost:8000’ --header ‘Host: hostname1’

i get

failure to get a peer from the ring-balancer

any idea why this happens

PS: same scenario works if i replaces my local api with some external apis like
http://api.openweathermap.org/data/2.5

did you create an “Upstream” by the name of “localhost” ?

you can check by doing a http get :8001/upstreams (assuming you use httpie)

Cross posted (and partially answered) here: https://github.com/Kong/kong/issues/3518

Partially answered and closed it since the question belongs here and not in the GitHub issues.