mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 244 forks source link

Issue with Vercel, works perfectly on local #286

Open smotlythomas opened 1 year ago

smotlythomas commented 1 year ago

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