-
Notifications
You must be signed in to change notification settings - Fork 244
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(), get() method does not work, but list() works. #45
Comments
In put(), but, In get(), not yet, I don't know why doesn't work. |
For your get() issue, can you enable debugging by setting |
Also, are you able to successfully transfer this same file on the same server with a different ftp client? |
hi mscdex!, yes, in FileZilla FTP client works very well, upload and download both. same FTP server. |
@chamsae set |
I am sorry not to understand your meaning. I'm a newbie for english, nodejs. |
Example: ftp.connect({
host: '127.0.0.1',
user: 'foo',
password: 'bar',
debug: console.log // <-- add this line
}); |
OK! thank you for giving example!
Process finished with exit code 1 |
Ok, that's a different error. Can you provide the output that generates the 'vsf_sysutil_recv_peek: no data' error? |
What if you try using '/www/galleryImage/sdf222222s.txt', without the '.' in front? Or change to the 'www' directory, then to the 'galleryImage' directory, and then try get()'ing 'sdf222222s.txt'? |
Ok. I'll try that. and I don't know why.. no more occur first error "[Error: OOPS: vsf_sysutil_recv_peek: no data] code: 500". |
WOW suceess download. thank you very much, mscdex!!!
|
and I have another problem just now about connection, could you answer more? |
sure, go ahead |
You looks very kind, thank you. I want to keep FTP connection for forever until I shutdown Express Server though not transferring file or listing. ===========FTP error event========= events.js:71 |
or I think, anyway, I tried reconnect after disconnect(maybe.. 'close event'). c.on('close', function(hadErr){
}); simply, I want to fix the error "Error: No transfer timeout (900 seconds): closing control connection] code: 421", |
Ok, the keepalive mechanism should be fixed in c7aecf3. Give it a try with |
it maybe works!
then, after setting like this, never close connection? c.connect({ |
You could probably do both: rely on keepalive and reconnect if disconnected. It's difficult to say if any given server will kill a connection if it sees the client is just continually sending NOOPs. I would hope most would not though and would keep the connection open. |
Ok, thank you mscdex. |
Hi,
I am trying to make FTP client by this module.
List() command works well.
but put(), get() as upload, download doesn't work.
I think I tried like your example.
I will show you my source.
In case of put(),
after greeting event, ready event,
I execute this code.
ftp.txt is same directory with javascript source file.
but "ftpcopy.txt" created on FTPserver just include text "./ftp.txt".
it seems not to recognize first parameter input filename but just String.
In case of get(),
emitted error.
console.logs are like below,
==============FTP greeting event===
=============FTP ready event===========
(execute download command)
===========FTP error event=========
{ [Error: OOPS: vsf_sysutil_recv_peek: no data] code: 500 }
===========FTP error event=========
{ [Error: OOPS: child died] code: 500 }
============FTP end event====
===========FTP close event====
if I have a mistake, could you comment some advice?
The text was updated successfully, but these errors were encountered: