Closed hvm2hvm closed 9 months ago
@hvm2hvm Hi, I am sorry for this error. This has already been fixed a couple of days ago. Can you please test with the latest version of OfficeParser v4.0.5? Please reopen this issue again if it has not been fixed.
Hi,
Using this code and the attached file, one can check that there's an uncatchable error caused by the officeParser library, for both the callback and promise variants.
empty.xlsx
(The file itself is irrelevant, any error that appears during parsing will create the same issue)
If I change the internalCallback function (line 533) so that it looks like this, both of the use cases above fail gracefully.
(The existing implementation is throw-ing an error instead of calling the callback which is not catchable in any way: https://github.com/harshankur/officeParser/blob/1ad0832227a490be7bb9b2278ba1572b17dfff38/officeParser.js#L541)