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: ENOTEMPTY: directory not empty #3346

Open
2 tasks done
xggaxlc opened this issue Oct 22, 2024 · 2 comments
Open
2 tasks done

Error: ENOTEMPTY: directory not empty #3346

xggaxlc opened this issue Oct 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@xggaxlc
Copy link

xggaxlc commented Oct 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Is this a problem caused by your code, or is it specifically because of the library?

  • I have double-checked my code carefully.

Describe the bug.

https://github.com/pedroslopez/whatsapp-web.js/blob/main/src/Client.js#L334
https://github.com/pedroslopez/whatsapp-web.js/blob/main/src/authStrategies/LocalAuth.js#L47

The problem occurs because the browser is not closed, which leads to errors when trying to remove browser data files.

Expected Behavior

Should close the browser first before deleting the files.

Steps to Reproduce the Bug or Issue

  1. Use localAuth
  2. Scan QR code to log in to WhatsApp
  3. Log out on the phone

WhatsApp Account Type

Standard

Browser Type

Google Chrome

Operation System Type

Mac

Phone OS Type

Android

WhatsApp-Web.js Version

1.26.0

WhatsApp Web Version

2.3000.1017546425

Node.js Version

22.6.0

Authentication Strategy

LocalAuth

Additional Context

No response

@xggaxlc xggaxlc added the bug Something isn't working label Oct 22, 2024
@Gugah
Copy link

Gugah commented Oct 22, 2024

I have the same problem

@devlikepro
Copy link
Contributor

Here's one potential fix for that #3351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants