var c = new Client();
c.on('ready', function() {
c.list(function(err, list) {
if (err) throw err;
console.dir(list);
c.end();
});
});
// connect to localhost:21 as anonymous
c.connect();`
It works perfectly locally, but not on Vercel. We never get into the "ready" method.
The environment variables have been checked and everything is fine.
I try this with two differents FTP server :
`var Client = require('ftp');
var c = new Client(); c.on('ready', function() { c.list(function(err, list) { if (err) throw err; console.dir(list); c.end(); }); }); // connect to localhost:21 as anonymous c.connect();`
It works perfectly locally, but not on Vercel. We never get into the "ready" method.
The environment variables have been checked and everything is fine.
Has anyone ever had this problem?
Thanks