'Error: connect ENOENT unix:/run/php-fpm/php-fpm.sock\n at Object.exports._errnoException (util.js:860:11)\n at exports._exceptionWithHostPort (util.js:883:20)\n at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)'
When I am connecting to my server, which requests PHP file from second server then error happens.
Sock file exists but PHP server fails to connect to it using net.Stream.
How can I fix this problem?
var connection = new net.Stream();
...
connection.connect(options.fastcgiHost);