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
When attempting to open a corrupted .zip file from AWS S3, an InvalidRange error is thrown that cannot be caught. This prevents code execution from terminating gracefully. I've tried
try { directory = await unzipper.Open.s3(s3, {Bucket: S3_BUCKET_NAME, Key: key}); } catch (error) { console.log(error); }
and const directory = await unzipper.Open.s3(s3, {Bucket: S3_BUCKET_NAME, Key: key}).catch((error) => { console.log(error); });
and in neither case does the error flow through to the catch block. Instead, I get a stack dump InvalidRange: The requested range is not satisfiable at Request.extractError... and the process crashes.
The text was updated successfully, but these errors were encountered:
Very interesting, thanks for the report. This error should definitely be caught. Please do a PR if you figure this out, otherwise I will try to take a look later in the week
When attempting to open a corrupted .zip file from AWS S3, an InvalidRange error is thrown that cannot be caught. This prevents code execution from terminating gracefully. I've tried
try { directory = await unzipper.Open.s3(s3, {Bucket: S3_BUCKET_NAME, Key: key}); } catch (error) { console.log(error); }
and
const directory = await unzipper.Open.s3(s3, {Bucket: S3_BUCKET_NAME, Key: key}).catch((error) => { console.log(error); });
and in neither case does the error flow through to the catch block. Instead, I get a stack dump
InvalidRange: The requested range is not satisfiable at Request.extractError...
and the process crashes.The text was updated successfully, but these errors were encountered: