You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However the .list callback wasn't called at all. It's never called, and my logic just halts.
Here's where I call .list:
returnawaitnewPromise<Array<{name: string,type: string}>>((resolve,reject)=>{console.log("call underlying list",pathStr);this._ftp.list(pathStr,(err: Error,list: Ftp.ListingElement[])=>{if(err){console.log("ftp list ended with error");reject(err);}console.log("ftp list ended with success");resolve(list);});});
Here's where I handle the more general error event, before the connection event:
returnawaitnewPromise<string>((resolve,reject)=>{this._ftp.on("ready",()=>{this._connected=true;this._connecting=false;console.log("ftp connected and ready");resolve("/");});this._ftp.on("error",err=>{this._connected=false;this._connecting=false;console.error("ftp error",err);reject(err);});this._ftp.on("close",()=>{console.log("ftp closed");this._connected=false});this._ftp.on("end",()=>{console.log("ftp end");this._connected=false});this._ftp.connect(this._credentials);});
After creating a ftp, doing many operations on it, I get this:
This is from
ftp.on('error', ...)
.However the
.list
callback wasn't called at all. It's never called, and my logic just halts.Here's where I call
.list
:Here's where I handle the more general
error
event, before the connection event:And here's the log of my application:
So
ftp
does emit theerror
andclose
events, but the callback oflist
is never called.The text was updated successfully, but these errors were encountered: