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

put fails with "Unknown command" #32

Open
barrydrink opened this issue Aug 14, 2018 · 4 comments
Open

put fails with "Unknown command" #32

barrydrink opened this issue Aug 14, 2018 · 4 comments

Comments

@barrydrink
Copy link

When putting a file on an ftp server, an error is thrown.

To reproduce, run the example put code:

  var fs = require('fs');
  
  var ftp = new PromiseFtp();
  ftp.connect({host: host, user: user, password: password})
  .then(function (serverMessage) {
    return ftp.put('foo.txt', 'foo.remote-copy.txt');
  }).then(function () {
    return ftp.end();
  });

Stack trace:

Unhandled rejection Error: Unknown command
at makeError (/Users/projects/ftpProject/node_modules/@icetee/ftp/lib/connection.js:1128:13)
at Parser.<anonymous> (/Users/projects/ftpProject/node_modules/@icetee/ftp/lib/connection.js:122:25)
at emitTwo (events.js:126:13)
at Parser.emit (events.js:214:7)
at Parser._write (/Users/projects/ftpProject/node_modules/@icetee/ftp/lib/parser.js:61:10)
at doWrite (_stream_writable.js:397:12)
at writeOrBuffer (_stream_writable.js:383:5)
at Parser.Writable.write (_stream_writable.js:290:11)
at Socket.ondata (/Users/projects/ftpProject/node_modules/@icetee/ftp/lib/connection.js:298:20)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:597:20)
@sptutusukanta
Copy link

Hello, is there any update on this. Because I'm still getting this error.

@barrydrink
Copy link
Author

Hello, is there any update on this. Because I'm still getting this error.

Any joy @sptutusukanta ?

@sptutusukanta
Copy link

@barrydrink No. I searched through the core of it. Internally it is using a library (class) which is old and possibly buggy. I just moved to the original FTP module & made a wrapper to use promises.

Later I may release some code for everyone to use. But at this moment it's not complete to be released.

@janwidmer
Copy link

janwidmer commented May 2, 2019

I am getting the same error.. any update on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants