Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Timed out while making data connection #101

Open
Nekiy2 opened this issue Oct 18, 2017 · 0 comments
Open

Error: Timed out while making data connection #101

Nekiy2 opened this issue Oct 18, 2017 · 0 comments

Comments

@Nekiy2
Copy link

Nekiy2 commented Oct 18, 2017

node 6.9.2
gulp 3.9.1
vinyl-ftp 0.6.0

Cant connect to my server:

gulp.task('ftp', function () {
  var conn = ftp.create( {
        host:     'myhost',
        user:     'login',
        password: 'psw',
        parallel: 10,
        log:      ftp.log
    } );
 
    var globs = [
        'css/**',
        'js/**',
        'img/**',
        '*.html'
    ];
 
    // using base = '.' will transfer everything to /public_html correctly 
    // turn off buffering in gulp.src for best performance 
 
    return gulp.src( globs, { base: '.', buffer: false } )
        .pipe( conn.newer( '/pathtomyfolder' ) ) // only upload newer files 
        .pipe( conn.dest( '/pathtomyfolder' ) );
});

After run task i get console log:

[11:41:44] Using gulpfile pathtomylocalfolder\sitebuild\gulpfile.js
[11:41:44] Starting 'ftp'...
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Timed out while making data connection
    at Timeout.<anonymous> (pathtomylocalfolder\sitebuild\node_modules\ftp\lib\connection.js:901:12)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)

I dont understand this line:

 events.js:160
      throw er; // Unhandled 'error' event
      ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants