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
Our application generates a XLS report, but right now we have an issue where it is generating a corrupted xls, but I realized that an error is not caught trying to read this corrupted xls, I try debugging and identified specifically in the "return excel()" function it doesn't enters, not sure how to provide my xls as an example.
processFile=function(src,dst,options=_DEFAULT_OPTIONS,callback=void0){options=_validateOptions(options);if(!callback){callback=function(err,data){};}// NOTE: 'excel' does not properly bubble file not found and prints// an ugly error we can't trap, so look for this common error firstif(!fs.existsSync(src)){returncallback(`Cannot find src file ${src}`);}else{returnexcel(src,options.sheet,function(err,data){============>>>CODENEVERREACHESTHISPART<<<==================varresult;if(err){returncallback(`Error reading ${src}: ${err}`);}else{result=convert(data,options);if(dst){returnwrite(result,dst,function(err){if(err){returncallback(err);}else{returncallback(void0,result);}});}else{returncallback(void0,result);}}});============>>>CODENEVERREACHESTHISPART<<<==================}};
So , when I try this, it doesn't even prints the first console.log();
@JesusLopezCh , I have noticed this in the past as well. The dependent package, "excel", does not report errors on some failure to load a file - as confirmed by your test. I encourage you to create an issue with that project - you have enough information in your work above to create a minimal reproducible test case.
I'm sure you have noticed that you can work around this limit by raising an error if no content is produced. You could even replicate the processFile code in your project to specifically identify when excel produces no data for you to work on.
I appreciate your debugging efforts and quality of your issue report.
Our application generates a XLS report, but right now we have an issue where it is generating a corrupted xls, but I realized that an error is not caught trying to read this corrupted xls, I try debugging and identified specifically in the "return excel()" function it doesn't enters, not sure how to provide my xls as an example.
So , when I try this, it doesn't even prints the first console.log();
The text was updated successfully, but these errors were encountered: