mscdex / node-ftp

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

ECONNREFUSED using ftp #174

Open zamanex opened 7 years ago

zamanex commented 7 years ago

Same Error for default and using credentials.
events.js:141 throw er; // Unhandled 'error' event ^

Error: connect ECONNREFUSED 127.0.0.1:3500 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)

Stumblor commented 7 years ago

I get this too - when connecting for the second time (during a setInterval loop).

firminochangani commented 6 years ago

I am getting the same error.

Slyteer commented 5 years ago

Yea guys i have the same one ;) #wheresolikeeatchother But do you have a solution ?

yasyash commented 5 years ago

Hello, I have the same error when the FTP server is down, but how can I handle this error? Thanks!

yasyash commented 5 years ago

I've resolved this issue like that. Cause of error: no connection to the server. This problem pops up in the conn.connect() function. If I made the following construction: try { conn.connect(options, { debug: debug }); } catch (err) { console.log('FTP connection error catched: ', err); }

The app didn't crash, displaying an error in the console.

vitoresende commented 4 years ago

I am getting the same error. I've tried what @yasyash commented but it didn't work for me.

anujpachawadkar commented 4 years ago

Even I am getting the same error and that too for localhost, Please provide solution for this if anyone has got!

anujpachawadkar commented 4 years ago

I've resolved this issue like that. Cause of error: no connection to the server. This problem pops up in the conn.connect() function. If I made the following construction: try { conn.connect(options, { debug: debug }); } catch (err) { console.log('FTP connection error catched: ', err); }

The app didn't crash, displaying an error in the console.

But that doesn't give you any solution to the problem.