-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: EBUSY: resource busy or locked #3072
Error: EBUSY: resource busy or locked #3072
Comments
any solution? |
note yet, i have same problem |
Try This. Open With This |
try this ,its working on windows webVersion: '2.2322.15', |
I deleted all my messages and it didn't give any more errors |
not work at all...same error for me |
This version work for me, i was receving the error: "Node with given id does not belong to the document" |
This comment was marked as outdated.
This comment was marked as outdated.
anyone can fix it? |
no one will take care of issues (this is my experience so far). So maybe you need to wait for another version that address this (if you're lucky). If this can help you this happen to me when i migrate to exodus...previous versions works....(for now) |
anyone can fix it? |
I was able to resolve it by clearing all messages from the app on my phone |
Modify the logout() function in your Client.js as follows:
For more details see: 6d68da4 |
I think the problem is here: Line 345 in cd566f2
Why the logout function delete the user folder without close the browser before? |
I have the same problem did anyone get the fix? |
This is somehow related to #3173 |
Temporary Fix for Preventing User Session Deletion on Logout For those experiencing issues with user sessions being deleted upon logout in whatsapp-web.js, you can implement a temporary fix by modifying the LocalAuth.js file. Open the file located at: node_modules\whatsapp-web.js\src\authStrategies\LocalAuth.js Comment Out Session Deletion Code Find the logout method and comment out the code that deletes the session folder:
Delete Session Folder Manually on Disconnected EventInstead of deleting the session folder on logout, delete it when a disconnected event is fired with the conditions reason == 'NAVIGATION' || reason == 'LOGOUT'. Add the following code to handle the disconnected event:
This will prevent the session folder from being deleted automatically on logout and will ensure it is deleted only when necessary. |
please how to get ${userId} ? |
basically here userId is clientId.
use your clientId instead of it. |
Is there an existing issue for this?
Describe the bug
N.B. this not happen with previous versions of WWEBJS...happen with exodus package
I can get the qrcode and pairing code correctly, but after a qrcode scan i get
this is my client:
Expected behavior
as previous versions, i shouldn't get this error and the phone will be paired correctly.
Steps to Reproduce the Bug or Issue
Relevant Code
seems that the problem is here (based on che stack error)
async logout() {
if (this.userDataDir) {
await fs.promises.rm(this.userDataDir, { recursive: true, force: true })
.catch((e) => {
throw new Error(e);
});
}
}
Browser Type
Chromium
WhatsApp Account Type
WhatsApp Business
Does your WhatsApp account have multidevice enabled?
No, I am not using Multi Device
Environment
OS: Windows
whatsapp-web.js version: "whatsapp-web.js": "github:pedroslopez/whatsapp-web.js#webpack-exodus"
node version: 18.17.1 and 20.12.2
Additional context
No response
The text was updated successfully, but these errors were encountered: