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

Getting BAD_PASSWORD very often #267

Open
jabbar86 opened this issue Mar 13, 2023 · 0 comments
Open

Getting BAD_PASSWORD very often #267

jabbar86 opened this issue Mar 13, 2023 · 0 comments

Comments

@jabbar86
Copy link

jabbar86 commented Mar 13, 2023

I have implement unzipper module in my repo. below is code snippet but when i deploy code in production where TPM is high i am getting BAD_PASSWORD error very often.Can you suggest good idea how to resolve it.

const zipDirectory = await Open.file(filepath); // unzip a file
     const file = zipDirectory.files[0]; // find the file you want
     const extracted =  file.buffer(password)
     writeFile('test.xml', extracted.toString(), (err) => {
       if (err) {
        console.error({ message: "Error while writing file" });
       }
      console.info("Unzip File Saved Successfully");
     });

Error :

error: "BAD_PASSWORD"
level: "error"
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