Comments (5)
Thanks for debugging, I am looking into it.
from jsftp.
Is this a new error with 1.0? How are you connecting to the ftp server and how are you attaching the callback?
from jsftp.
Yes, I downloaded the latest version.
here's my code. Thanks!
ftpConfig = {
host : req.param('host'),
port : req.param('port'),
user : req.param('user'),
pass : req.param('pass')
};
var ftpConnect = function (callback){
ftpConn = new Ftp(ftpConfig);
ftpConn.on('error',function(err){
//console.log('try catch');
ftpLogs({code: 000 , text: err});
callback(false);
});
ftpConn.auth( ftpConfig.user , ftpConfig.pass , function (err,data){
if(err) ftpLogs(err);
//console.log('authenticated...');
ftpLogs(data);
callback(true);
});
}
from jsftp.
I tested your user case, and added a unit test (still in a branch): b31522a
It passes cleanly for me, even if the host doesn't exist. Is it the same you are doing? The error you are getting happens if there is no listener for error
events, but in both our cases is there.
from jsftp.
I mixed IP and letters ("192.168.0.1s") in host.
from jsftp.
Related Issues (20)
- Ftp.features is undefined when auth is not called
- list returns wrong filename if filename starts with a space HOT 1
- raw command of send was failed
- Documentation May Be Wrong HOT 1
- Can i sync ftp folder with local folder?
- ftp.get() not working correctly HOT 7
- Browse directories
- Ftp.put can only upload empty files on node10.16.0. If there is content, call error = = = false, but there is no file on the server
- jsftp ls error
- TypeError: this.socket.on is not a function at Ftp._createSocket HOT 3
- How to use 'rmda' command HOT 3
- not support node v10.x (fault upload, download at CentOS8) HOT 2
- Is it possible to use put function for directory
- HTTP proxy
- Ftp.get(remotePath, localPath, callback) creating files with size 0
- DeprecationWarning: Invalid 'main' field in '/workspaces/myblog/node_modules/jsftp/package.json' of './jsftp.js'.
- .rename 501 Bad sequence of commands fix
- FTP raw mkd HOT 1
- Invalid 'main' field in 'D:\hexo\blog\node_modules\jsftp\package.json'
- How to multiple get files [solution]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsftp.