lumphe / ftp-ts

FTP-ts is an FTP client module for node that provides an asynchronous interface for communicating with a FTP server.
MIT License
9 stars 5 forks source link

Command FEAT not understood #1

Closed DayBr3ak closed 6 years ago

DayBr3ak commented 6 years ago

Simple example

const ftpConnection = await ftpClient.connect({
      secure: false,
      host: 'host.superhost',
      port: 21,
      user: 'user',
      password: 'pass'
    })

And I get this error:

{ Error: 'FEAT': command not understood.
    at makeError (...node_modules\ftp-ts\dist\connection.js:1:17985)
    at Parser._parser.on (...node_modules\ftp-ts\dist\connection.js:1:3864)
    at emitTwo (events.js:126:13)
    at Parser.emit (events.js:214:7)
    at Parser._write (...node_modules\ftp-ts\dist\parser.js:1:3014)
    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.u (...node_modules\ftp-ts\dist\connection.js:1:7024)
    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) code: 500 }
DayBr3ak commented 6 years ago

I've hacked a solution by removing the FEAT step of the onconnect function after the PASS command is sent.

lumphe commented 6 years ago

Fixed and published as 1.0.6

DayBr3ak commented 6 years ago

Sorry to bother you. It seems 1.0.6 was not published on npm.

lumphe commented 6 years ago

No problem it seems that i missed the publish step. But now it is up to date on the npm as well.

Sorry to bother you. It seems 1.0.6 was not published on npm.