I have node js server running a script through pm2 daemon.
sometimes the server cannot be connected to on the first try, a second try and the server can be connected