Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with zipfile in unzGoToFirstFile #10

Open
rmrbytes opened this issue Jan 21, 2021 · 0 comments
Open

error with zipfile in unzGoToFirstFile #10

rmrbytes opened this issue Jan 21, 2021 · 0 comments

Comments

@rmrbytes
Copy link

I have testing this library and created many files however at random a few of the zip files created throw up this error. I have not been able to find out what is specific to those files. I am including the code and the point where the error appears

                // read the buffer from file object
                const _filebuffer = await this._readBuffer(fileobj);
                // convert to uint8array
                const _arr = new Uint8Array(_filebuffer);
                // create new object using arr
                this._zip = new Minizip(_arr);
                // read list of zip content
                const _list = this._zip.list();

At the point of list() the library inconsistently throws up

Error: error with zipfile in unzGoToFirstFile
    at Minizip.list

Any help on why this happens will be greatly appreciated. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant