-
Notifications
You must be signed in to change notification settings - Fork 240
Description
I used the terminal command in FTP to connect to the FTP server, I can normally get/put,

but after using the node-ftp connection to the server using the put error.
Code:
client.put(`${outputPath}/${sourceZip}`, '/Gzip.tar.gz', (err) => {
if (err) {
phisay.fail(err);
console.log(err);
// reject(err);
}
client.end();
});Error code:
[MSG] [connection] > 'PASV'
[MSG] [connection] < '227 Entering Passive Mode (...).\r\n'
[MSG] [parser] < '227 Entering Passive Mode (...).\r\n'
[MSG] [parser] Response: code=227, buffer='Entering Passive Mode (...).'
[MSG] [connection] > 'ABOR'
[MSG] [connection] < '226 Abort successful\r\n'
[MSG] [parser] < '226 Abort successful\r\n'
[MSG] [parser] Response: code=226, buffer='Abort successful'
[FAIL] Error: Timed out while making data connection
Error: Timed out while making data connection
at Timeout. (/Users/..../git/shell/node_modules/ftp/lib/connection.js:901:12)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5)