node-ftp icon indicating copy to clipboard operation
node-ftp copied to clipboard

ECONNREFUSED using ftp

Open zamanex opened this issue 7 years ago • 8 comments

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)

zamanex avatar Mar 12 '17 08:03 zamanex

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

Stumblor avatar Mar 20 '17 11:03 Stumblor

I am getting the same error.

firminochangani avatar Jul 10 '18 09:07 firminochangani

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

Slyteer avatar Dec 16 '18 23:12 Slyteer

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

yasyash avatar Aug 19 '19 14:08 yasyash

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.

yasyash avatar Aug 19 '19 21:08 yasyash

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

vitoresende avatar Feb 19 '20 18:02 vitoresende

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

anujpachawadkar avatar Mar 26 '20 14:03 anujpachawadkar

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.

anujpachawadkar avatar Mar 26 '20 14:03 anujpachawadkar