Compiled version of bitcoind 0.18.1. "Could not connect to the server 127.0.0.1:8332"
The problem was in libevent 2.0.22. It spoiled HTTP response from bitcoind every time. libevent 2.1.11 fixed this issue.