mscdex / node-ftp

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

Error: Timed out while making data connection #163

Open hooper-hc opened 7 years ago

hooper-hc commented 7 years ago

I used the terminal command in FTP to connect to the FTP server, I can normally get/put, qq20161127-0 2x

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)

hooper-hc commented 7 years ago

node-fep version: "ftp": "^0.3.10",