# Haproxy Runtime API returns empty result

**URL:** <https://discourse.haproxy.org/t/haproxy-runtime-api-returns-empty-result/6469>\
**Category:** Help!\
**Created:** [April 13, 2021, 6:09pm UTC](https://discourse.haproxy.org/t/haproxy-runtime-api-returns-empty-result/6469 "2021-04-13T18:09:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![w7089](https://avatars.discourse-cdn.com/v4/letter/w/45deac/32.png) [@w7089](https://discourse.haproxy.org/u/w7089)\
**Post date:** [April 13, 2021, 6:09pm UTC](https://discourse.haproxy.org/t/haproxy-runtime-api-returns-empty-result/6469/1 "2021-04-13T18:09:19Z")

</div>

Hi,

I’ve configured HaProxy using the below config:

```auto
global
        maxconn 15000 # Maximum concurrent connections
        nbproc 1
        pidfile /var/run/haproxy.pid
        log /dev/log local0 info
        user root
        group root
        tune.ssl.default-dh-param 2048
        stats socket /var/run/haproxy.stat mode 600 expose-fd listeners level user
        stats socket ipv4@*:9999 level admin expose-fd listeners 
defaults
        log global #make all intefaces log by default
        option redispatch # redispatch request originally sent to downed backend servers
        option abortonclose # abort request if client closes output channel while waiting
        timeout server 120s

```

However, both below commands return empty result:

```auto
echo "help" | socat stdio /var/run/haproxy.stat
echo "help" | socat stdio tcp4-connect:10.18.126.212:9999 

```

Is there a way to fix this or cause API to return results?
