mscdex / node-ftp

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

LIST method never calls back #137

Open lukasz-wronski opened 8 years ago

lukasz-wronski commented 8 years ago

I'm trying to list folders on FTP server path "/www". The callback is never called and I'm getting ECONNRESET error.

What I've already managed to debug myself inside connection.js file is that sendList method is called, I'm getting code 150, then it goes to final method, but replies counter is "1" so it waits for second reply, but it never comes.

The response with files list is comming from ftp server during this operation (the buffer variable has it).

The debug log is following:

[connection] > 'PASV'
[connection] < '227 Entering Passive Mode (213,186,33,215,101,224)\r\n'
[parser] < '227 Entering Passive Mode (213,186,33,215,101,224)\r\n'
[parser] Response: code=227, buffer='Entering Passive Mode (213,186,33,215,101,224)'
[connection] PASV socket connected
[connection] > 'LIST /www'
[connection] < '150 Accepted data connection\r\n'
[parser] < '150 Accepted data connection\r\n'
[parser] Response: code=150, buffer='Accepted data connection'

And then connection is being closed.

This is causing bug in my Visual Studio Code extension. I got it reported by @krystianprzybyla in this issue. He can probably help you with more details about his FTP server. This is happening on popular european hosting - OVH.