Skip to content

Error: Timed out while making data connection #163

@hooper-hc

Description

@hooper-hc

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions