-
-
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
🐛🐛 session does not persist using LocalAuth id 🐛🐛 #2164
Comments
I am experiencing the same problem. |
The whatsapp version that whatsapp-web.js mark like "working with" is = WhatsApp_Web 2.2306.7, and Now the current WhatsApp Web version is 2.2317.10. maybe something with session was changed
|
Pudiste encontar solucion?? |
At first I found a solution, for now it's working. In the package.json inside node_modules/whatsapp-web... change the version of puppeteer to 18.1.0 |
Is weird because that works some times |
same here |
Same here |
I tried it, didn't work |
Same problem |
@pedroslopez , some idea about this? |
same here |
same here :( |
It worked for me, update puppeteer to 20.3.0 |
Please fulls steps. I need a npm install then? |
My puppeteer is on version 20.3.0 but the error persists. |
@pedroslopez Maybe your help? |
up |
UP, session persistence is super unconsistent. |
same problem |
I had the same problem with session in another library, it seems this problem is related to some thing that Whatsapp changed. Maybe it's a false impression I've tested different libraries. |
Hi, I resolved it with permission chmod on both .wwebjs_auth and .wwebjs_cache directories regards |
still ask to scan qr code |
up again |
still happening |
We really need some solution in here... I'm willing to assist, just give me the details of the potential issue 🙏 |
OK, I've managed to resolve the issue: TL;DR NestJS provider
Terminal Screenshot |
@Avivbens, I tried but it didn't made it. Can you share the whatsapp-web.js version? Did you change the puppeteer version? Any help is very welcome. |
Sure man 👍 |
@eduardotorresdev You'll see on your WhatsApp client over the device that your chats are in sync. Keep it that way for a bit, then test the restart. |
@Avivbens It's worked! Thank you. I just waited the time for WhatsApp client sync with device and, that's it, worked like charm. |
Happy to hear 🥳 For future documentation - list here the versions you're on please 🙏 |
I'm using whatsapp-web.js at "^1.23.0" version. I didn't changed puppeteer version or of any related package to wwebjs lib. I just added the webVersion that you told previously. |
@Avivbens Can i colaborate with something? I believe that is very important to documentate all this question of auth and his persistance, so maybe we can do this together. |
Well, that is a good idea. That being said, the documentation structure of this project isn't in its best shape. Maybe the owner can give us a hint here 👼 |
It doesn't help, it works for one week and then suddenly it disconnects and asks for qr again on restore with no reason.. how can we fix this?? why it's happening? |
Well, in general, the library has an Apache license, meaning it has no responsibility for the stability of the product. That being said, you can try to use the RemoteAuth strategy, it might be a bit more stable. |
Hello every one.. is there a solution here? It is so frustrating.. It still happens.. |
Same problem |
up |
how u can fix the issue? |
having the same issue recently |
Also having the same issue, any updates? |
any update? |
I updated to the last version |
Is there an existing issue for this?
Describe the bug
I have been using "whatsapp-web.js" in my application for about 6 months, and yesterday the session persistence stopped working, I am using
authStrategy: new LocalAuth({ clientId: user._id })
, and with this When I want to use the WhatsApp channel again, I can use it without having to scan the QR again, but every time that I want to use the channel and send messages, it is making me to scan the QR and this was not happening until yesterdayExpected behavior
for first time scan the QR once, and be able to continue using whatsapp without having to scan each time I use it
Steps to Reproduce the Bug or Issue
authStrategy: new LocalAuth({ clientId: "some-client-id" })
Relevant Code
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Additional context
remember: this was not happening until yesterday, I already tried setting all the permissions to the .wwebjs_auth folder, and to all its content, but it's still the same, I also notice that in windows (no server -> my personal computer) with exactly the same configuration but using
CHROME_EXECUTABLE_PATH=C:/Program Files/Google/Chrome /Application/chrome.exe
, it is working correctly, any idea why?maybe the session files are not being saved correctly in the ".wwebjs_auth" folder, but I don't really know how to look at that part
Update: in other computer with Windows is happenig the same issue so is not the OS.
The text was updated successfully, but these errors were encountered: