I just created a simple working to connect to ftp but it doesn’t work it shows this error!

I would check on GitHub to see if there are similar reports of this console error your having. If your getting a failed to connect to your Host Server then try and use an FTP Test site like https://dlptest.com/ftp-test/ to see if it may be a Host Server problem or credentials you are using. Also, Debug your configuration and let us know what the Complete Log reports.